setup_viewports {ggplot} | R Documentation |
Setup matrix of viewports for a layout with given parameters
setup_viewports(type, rows=nrow(data), cols=ncol(data), data, offset=c(0,0), range, angle=0)
type |
viewport type |
rows |
number of rows |
cols |
number of columns |
data |
optional data to compute rows and columns from |
offset |
offset from top and left |
range |
list containing x and y ranges |
angle |
Hadley Wickham <h.wickham@gmail.com>