size {matRiks}R 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)

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"))

[Package matRiks version 0.1.3 Index]