How to apply zooming effect on geom_segment plot?

Hello there,

I want to zoom in two places or more of the geom_segment plot. I tried to arrange the multi plots using grid where the whole segment plot on the top and the two zoomed areas in the bottom next to each other. I used xlim to do the zooming trick. The issue with this approach is there are no segments in the zoomed areas. I think because the segment range is out od the specified xlim.

Anyone have a better idea to apply the zoomed effect in multiple places on a segment plot?

Thank you in advance.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.