using ggforce paginated figures with ggplotly
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- r
- Bereich
- data-visualization
Rechercherichtung
Beginne damit, die bereitgestellte Shiny-App auszuführen und die Ausgabe von renderPlot mit renderPlotly und ggplotly unter Verwendung von facet_wrap_paginate(page = 2) zu vergleichen. Verfolge, wie die Einstellungen für die paginierten Facets bei der Plotly-Konvertierung verarbeitet werden, und betrachte das Issue als erledigt, wenn die Plotly-Ausgabe nur die angeforderte Seite der Facets anzeigt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Hello, I'm currently trying to use ggforce::facet_wrap_paginate to take figures with many facets and chop them up to make them easier for folks to view in a Shiny App. I can render these with ggplot just fine, but when I try to use poorly it just puts all of the facets on the same figure. The code below reproduces the problem, and the output I see shown as well. The figure on the top is paginated ggplot output and the one below is the paginated plotly output.
Any help would be most appreciated.
library(plotly)
library(ggplot2)
library(ggforce)
ui <- fluidPage(
plotOutput("page2_ggplot"),
tags$br(),
plotly::plotlyOutput("page2_ggplotly")
)
server <- function(input, output) {
tmpds = diamonds[1:1000,]
output$page2_ggplot = renderPlot({
p = ggplot(tmpds) +
geom_point(aes(carat, price), alpha = 0.1) +
facet_wrap_paginate(~ cut:clarity, ncol = 3, nrow = 3, page = 2)
res = p
res})
output$page2_ggplotly = plotly::renderPlotly({
p = ggplot(tmpds) +
geom_point(aes(carat, price), alpha = 0.1) +
facet_wrap_paginate(~ cut:clarity, ncol = 3, nrow = 3, page = 2)
res = plotly::ggplotly(p)
res})
}
# Run the application
shinyApp(ui = ui, server = server)
- Vorherrschende Sprache
- R
- Sterne
- 2.7k
- Forks
- 641
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus plotly/plotly.R
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 72/100
-
save_image Error Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 52/100
Alle Issues in plotly/plotly.R
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
robjhyndman/forecast#1220 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
JamesHWade/deputy#192 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
-
bug triage_needed
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
pharmaverse/rtables#1123 · 1 Kommentar · 1 Reaktion ·