canvasSize {tracee} | R Documentation |
Get predefined canvas sizes
Description
Get predefined canvas sizes
Usage
canvasSize(canvas, scale = 1, simplify = TRUE)
Arguments
canvas |
Can either be a character with one of the values
or it can be a list with elements width and height with single values (unit is inches). Example: canvas=list(height=5,width=9). |
scale |
A scale to apply to both directions of the canvas size. This can be useful in combination with the pre-defined canvas sizes. |
simplify |
If only one canvas returned and simplify=TRUE, the result will not be wrapped in a list. For programming, you most likely want simplify=FALSE to be sure to always get the same format back. |
Value
A list with numerical elements width and height as used by ggwrite.
See Also
Other Plotting:
ggstamp()
,
ggwater()
,
ggwrite()