Based on a shapefile, number of columns and rows, generate plot IDs with different layouts.
plot_id(
shapefile,
nrow,
ncol,
layout = c("tblr", "tbrl", "btlr", "btrl", "lrtb", "lrbt", "rltb", "rlbt"),
plot_prefix = "P",
serpentine = FALSE
)
A vector of plot IDs with specified layout
An object computed with shapefile_build()
The number of columns
The number of rows
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
The plot_id prefix. Defaults to 'P'
.
Create a serpentine-based layout? Defaults to FALSE
.