Is there a way to force the zoom from the function facet_zoom() from the package ggforce on the lateral side of the graph instead of the bottom ?
I have this code
require(dplyr)
require(tidyverse)
require(ggforce)
g + facet_zoom(xlim = c(x1,x2)))
How should I proceed?
EDIT
Through the really good answer provided by Stefan I can add a picture representing what I want (I am definitely open for other ways to reach it).

It is possible but it requires a bit of a hack. As far as I get it from the docs this could only be achieved when zooming both in the
xandydirection. To this end you could set the zoom in the y direction toy=TRUEand afterwards setsplit=FALSEandhorizontal = TRUE. Doing so will place the zoom panel on the left of the main plot. Additionally we have to get rid of the background fill for the zoom in theydirection viathemeoptionzoom.y.Using the example data and code from your former post:
Note: One side effect of using
theme_bwis that we get some segments at the panel borders which connect the main and the zoom panel. Personally I didn't like that so I addedcolor=NAtotheme(zoom.y = element_rect(fill = NA, color = NA))to remove these lines.