Ich möchte mit 2 Achsen Mehr Plots auf jeder Parzelle zu tun, wie dieseplotly mehrere Grundstück Facette
library(plotly)
ay <- list(
tickfont = list(color = "green"),
overlaying = "y",
side = "right", title = "y2 axis title"
)
par(mfrow=c(2,1))
ax <-list(title = "x axis title")
ay1 <-list(title = "y1 axds title")
plot_ly(x = 1:3, y = 10*(1:3), name = "slope of 10") %>%
add_trace(x = 2:4, y = 1:3, name = "slope of 1", yaxis = "y2") %>%
layout(title = "Double Y Axis", yaxis2 = ay, xaxis = ax, yaxis = ay1)
ax <-list(title = "x axis title")
ay1 <-list(title = "y1 axds title")
plot_ly(x = 1:3, y = 10*(1:3), name = "slope of 10") %>%
add_trace(x = 2:4, y = 1:3, name = "slope of 1", yaxis = "y2") %>%
layout(title = "Double Y Axis", yaxis2 = ay, xaxis = ax, yaxis = ay1)
aber, wenn Sie diesen Code ausführen nur Sie noch ein Grundstück sehen. Kann Multiplots plotly machen? Kann es mit 2 Achsen facettieren?
Versuchen Sie, diese 2 (gleiche) Plots auf der gleichen Seite zu zeichnen? – Sumedh
ja. Ich möchte, dass sie sich übereinander zeigen. Aber im Idealfall möchte ich facet_wrap mit plotly verwenden können. ist das möglich? – user3022875