knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
This package is just my personal practice to play with grid.
# install.packages("devtools") devtools::install_github("yutannihilation/gridutils")
gu_you_are_here()Highlight the current viewport. Unlike grid::showViewport(), the highlight is removed after a while.
gu_you_are_here()
gu_print_vp()library(gridutils) library(ggplot2) library(grid) p <- ggplot(mtcars, aes(wt, mpg)) p + geom_point() + facet_wrap(~ cyl) gu_print_vp()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.