Sometimes, you want to give a specific plot area more attention, but still grasp what is going on in the other sections. The answer rests in ggforce
. Besides giving birth to new geometries, it also enables what is called facet zoom. While zooming a specific range, it also shows the entire figure by the side. Let's see a demonstration while using the boot::motor
data frame.
ggforce
is relatively new. Downloading it from the GitHub repository might be a better option as we might encounter new features and less bugs. Also make sure to have the boot
package downloaded; check how this can be done:
> if(!require(devtools)){install.packages('devtools')} > if(!require(ggforce)){devtools::install_github('thomasp85/ggforce')} > if(!require(boot)){install.packages('boot')}
To install from GitHub, we also require the package, devtools
. Another required package is boot
, which contains the motor
data frame. This frame shows data...