powered by
Apply a resizing to a figure
size(fig, n, rule, ...)# S3 method for figure size(fig, n = 2, rule = "size", ...)
# S3 method for figure size(fig, n = 2, rule = "size", ...)
A figure of class figure with different size.x and size.y
The figure on which the rule is applied
A number defining the dimension of the sizing. Default is 2.
Define the sizing rule. Default is to reduce the dimension. rule = "inv" forces to increase the dimension.
Other arguments
size(figure): Resize a figure
size(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"))
Run the code above in your browser using DataLab