plot_band_dims() calculates the overall printed width and height of the
band plot_band() draws for a given stack of cards or paper, including
the fold-ease plot_band() adds to the stack thickness (see
plot_band()'s pt parameter) and the overlap segment. Use it to get
the band's actual size — e.g. to center plot_band()'s plot on a larger
page with print_to_page() — without re-deriving the layout by hand.
Usage
plot_band_dims(
paper,
orientation = c("horizontal", "vertical"),
n = NULL,
pt = 10,
x = NULL,
thickness = NULL,
overlap = NULL,
band_width = NULL
)Arguments
- paper
Paper, page, or card name, or a data.frame with width and height columns (as returned by
get_page_size()ormake_page_size()), passed toas_page(). Sets the width and height of the stack of cards or paper the band wraps around.- orientation
Band orientation, either
"horizontal"or"vertical"."horizontal"wraps the band left-to-right, crossing the middle of the stack, so the band's panels use thewidthofpaperand the band's own height is set byband_width."vertical"wraps the band top-to-bottom instead, so the panels useheightand the band's own width is set byband_width. Default:"horizontal"- n, pt, x
Passed to
as_thickness()to calculate the thickness of the stack. Ignored ifthicknessis supplied.ptis also used to add a small ease allowance (the caliper of a single sheet or card) to the folded side segments of the band, since a flat band can't wrap tightly around a stack at its exact thickness. Ignored ifthicknessis supplied.- thickness
Optional. A
unitobject or number (in the units ofpaper) with the thickness of the stack, overridingn,pt, andx. If supplied, no ease allowance is added andthicknesssets the folded side segments of the band exactly. Default:NULL- overlap
Distance the band extends past the far edge of the stack, forming a segment that can be glued or taped closed. A
unitobject or a number (in the units ofpaper). Default:NULL, which uses 40% of thewidthofpaper(iforientationis"horizontal") or 40% of theheightofpaper(iforientationis"vertical") — i.e. 40% of whichever dimension ofpaperthe band wraps around.- band_width
Height of the band if
orientationis"horizontal", or width of the band iforientationis"vertical"— the dimension of the band perpendicular to the direction it wraps around the stack. Aunitobject or a number (in the units ofpaper). Default:NULL, which uses 40% of theheightofpaper(iforientationis"horizontal") or 40% of thewidthofpaper(iforientationis"vertical").
Value
A data.frame with the band's overall width, height, and
units, as returned by make_page_size().