knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

gridutils

This package is just my personal practice to play with grid.

Installation

# install.packages("devtools")
devtools::install_github("yutannihilation/gridutils")

Usages

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()

Resources about grid

The internals

Grob



yutannihilation/gridutils documentation built on May 15, 2019, 4:14 a.m.