Learn R Programming

matRiks (version 0.1.3)

margin: Margin rule (Method)

Description

Apply a change in the margins of the figure

Usage

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

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

Value

A figure with changed margins

A figure with changed margins

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

Methods (by class)

  • margin(figure): Change the margins rule

    Apply a change in the margins of the figure

Examples

Run this code
# 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))

Run the code above in your browser using DataLab