It is possible to create inset graphs?
Section 8.4 of the book explains how to do this. The trick is to use the grid package’s viewports. #Any old plot a_plot <- ggplot(cars, aes(speed, dist)) + geom_line() #A viewport taking up a fraction of the plot area vp <- viewport(width = 0.4, height = 0.4, x = 0.8, y = 0.2) #Just draw … Read more