size | R Documentation |
Apply a resizing to a figure
size(fig, n, rule, ...)
## S3 method for class 'figure'
size(fig, n = 2, rule = "size", ...)
fig |
The figure on which the rule is applied |
n |
A number defining the dimension of the sizing. Default is 2. |
rule |
Define the sizing rule. Default is to reduce the dimension. rule = "inv" forces to increase the dimension. |
... |
Other arguments |
A figure of class figure with different size.x and size.y
size(figure)
: Resize a figure
# default square
draw(square())
# apply the default resizing to the default square
draw(size(square()))
# make the square bigger
draw(size(square(), rule = "inv"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.