Based on a shapefile, number of columns and rows, generate plot IDs with different layouts.
Usage
plot_id(
shapefile,
nrow,
ncol,
layout = c("tblr", "tbrl", "btlr", "btrl", "lrtb", "lrbt", "rltb", "rlbt"),
plot_prefix = "P",
serpentine = FALSE
)Arguments
- shapefile
An object computed with
shapefile_build()- nrow
The number of columns
- ncol
The number of rows
- layout
Character: one of
'tblr'for top/bottom left/right orientation'tbrl'for top/bottom right/left orientation'btlr'for bottom/top left/right orientation'btrl'for bottom/top right/left orientation'lrtb'for left/right top/bottom orientation'lrbt'for left/right bottom/top orientation'rltb'for right/left top/bottom orientation'rlbt'for right/left bottom/top orientation
- plot_prefix
The plot_id prefix. Defaults to
'P'.- serpentine
Create a serpentine-based layout? Defaults to
FALSE.
