How to extend one of the facet created with facet_wrap and executed with ggplotly?

38 Views Asked by At

I would like to be able to display one of the windows that were created with facet_wrap by zooming or selecting the window on the web page created with ggplotly. Can something like this be done without using a Shiny app?

An example would be:

library(ggplot2)

p <- ggplot(mtcars, aes(x = hp, y = mpg, 
            color = factor(cyl), shape = factor(cyl))) +
     geom_point() +
     facet_wrap(~factor(cyl))

ggplotly(p)

enter image description here

After zoom I like something like this that takes up the entire page.:

enter image description here

Thank you very much for taking the time to read the query. Best

0

There are 0 best solutions below