Using ggplot2 and plotly to make an interactive scatter plot with facet_wrap().
library(ggplot2)
library(plotly)
g<-iris%>%
  ggplot(aes(x = Sepal.Length, y = Sepal.Width, color = Species))+
  geom_point()+
  facet_wrap(vars(Species))
ggplotly(g)
Is it possible to "facet" using the plot_ly() function? The documentation suggests subplot()...
p<-iris%>%
  group_by(Species)%>%
  plot_ly(x = ~Sepal.Length, y = ~Sepal.Width, color = ~Species, type = "scatter")%>%
  subplot() ##Something else here? 
p


 
    