margin: Margin rule (Method)

View source: R/rules.R

marginR Documentation

Margin rule (Method)

Description

Apply a change in the margins of the figure

Usage

margin(fig, n, rule, ...)

## S3 method for class 'figure'
margin(fig, n, rule, ...)

Arguments

fig

The figure on which the rule is applied

n

integer, defines the linetype of the linewidth

rule

character, lty changes the linetype (1 = solid, 2 = dashed, 3 = dotted), lwd changes the linewdith

...

Other arguments

Value

A figure with changed margins

A figure with changed margins

Methods (by class)

  • margin(figure): Change the margins rule

    Apply a change in the margins of the figure

Examples

# draw default triangle
draw(triangle())

# change the linetype
draw(margin(triangle(), "lty", 2))
# draw default triangle
draw(triangle())

# change the linetype
draw(margin(triangle(),"lty", 2))

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