get_paper | R Documentation |
Use the "paper" parameter (matching name from paper_sizes), standard (optionally including series and size) parameter, or width, height and units. May return multiple paper sizes depending on parameters.
get_paper( paper = "letter", orientation = "portrait", standard = NULL, series = NULL, size = NULL, width = NULL, height = NULL, units = NULL, cols = 1, rows = 1, gutter = 0, bbox = NULL, margin = NULL, ... )
paper |
Paper, Default: 'letter'. |
orientation |
Orientation "portrait", "landscape", or "square", Default: 'portrait'. |
standard |
Size standard, "ANSI", "ISO", "British Imperial", "JIS", "USPS", "Facebook", "Instagram", or "Twitter". |
series |
Size series (e.g. A), Default: |
size |
Size number (only used for "ISO" and "JIS" series). Standard, series, and size may all be required to return a single paper when using these parameters. |
width, height |
Width and height in units, Default: |
units |
Paper size units, either "in", "mm", or "px"; defaults to |
cols, rows |
Number of expected columns and rows in paper; used to
determine row_height and section_asp in paper data frame returned by
get_paper if rows or cols is greater than 1; defaults to |
gutter |
Gutter distance in units. Gutter is used as the spacing between rows and columns (variable spacing is not currently supported); defaults to 0. |
bbox |
A bounding box to use to get orientation using |
margin |
Margin style (options include "extrawide", "wide", "standard",
"narrow", "none"), Additional "auto" option to generate margin based on
line length is planned but not yet implemented. Default: |
... |
Additional parameters passed to get_margin. plot_width can only be passed in these parameters if paper has only a single row. margin is returned as a list column. |
If margin is provided, a block_width, block_height, and block_asp are calculated and included as columns in the returned data frame.
Paper can also be a data frame with "width", "height", "orientation", and "units" columns.
Data frame with one or more paper/image sizes.
get_paper("letter") get_paper(paper = NULL, standard = "ISO", series = "A", size = 4) get_paper(width = 11, height = 17)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.