size: Sizing rule (Method)

View source: R/rules.R

sizeR Documentation

Sizing rule (Method)

Description

Apply a resizing to a figure

Usage

size(fig, n, rule, ...)

## S3 method for class 'figure'
size(fig, n = 2, rule = "size", ...)

Arguments

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

Value

A figure of class figure with different size.x and size.y

Methods (by class)

  • size(figure): Resize a figure

Examples

# default square
draw(square())

# apply the default resizing to the default square
draw(size(square()))

# make the square bigger
draw(size(square(), rule = "inv"))

matRiks documentation built on May 29, 2024, 5:56 a.m.