margin | R Documentation |
Apply a change in the margins of the figure
margin(fig, n, rule, ...)
## S3 method for class 'figure'
margin(fig, n, rule, ...)
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 |
A figure with changed margins
A figure with changed margins
margin(figure)
: Change the margins rule
Apply a change in the margins of the figure
# 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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.