pen | R Documentation |
Pen plots can include ink from many pens and how they behave may differ. While some of these can be set when a new color is encountered it is often better and less error prone to define them upfront. It further allows you to specify specific axidraw options for each pen, e.g. travel speed.
pen(color, tip_size = NULL, offset = c(0, 0), options = NULL)
color |
The color that this pen corresponds to. |
tip_size |
The size of the line the pen leaves on the paper in mm |
offset |
The x and y offset from the starting pen tip |
options |
An |
An axi_pen
object
pen(color = 'forestgreen', tip_size = 2)
# Combine multiple pens
c(
pen(color = 'forestgreen', tip_size = 2),
pen(color = 'steelblue', tip_size = 1,
options = axi_options(speed_down = 15))
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.