draw_multiple_curves | R Documentation |
Draw multiple curves
draw_multiple_curves(
...,
list = NULL,
nrow = NULL,
ncol = NULL,
extend = TRUE,
title = FALSE,
closed = FALSE,
padding = unit(0, "pt"),
lwd = 4,
col = NULL
)
... |
A list of |
list |
The list of curve object can also be directly specified as a "list" object. |
nrow |
Number of rows in the layout. |
ncol |
Number of columns in the layout. |
extend |
Whether to draw the entry and exit segments? It is only used when input is a list of |
title |
Whether to add titles on each panel? The title is constructed in the form of |
closed |
Whether the curves are closed? The value should be a logical vector. If it is |
padding |
Space around each curve. The value should be a |
lwd |
Line width with length 1. |
col |
Color for the segments with length 1. If the value is |
This function is used for quick comparison on curves.
No value is returned.
# for all forms of curves initialized by base pattern 'R', with rotation 0, and on level 3
draw_multiple_curves(
sfc_2x2("R", "111"),
sfc_2x2("R", "112"),
sfc_2x2("R", "121"),
sfc_2x2("R", "122"),
sfc_2x2("R", "211"),
sfc_2x2("R", "212"),
sfc_2x2("R", "221"),
sfc_2x2("R", "222"),
nrow = 2, title = TRUE)
# simply a list of sequences
# note they only contain I/R/L, so the base patterns I/R/L are internally used
draw_multiple_curves(
sfc_sequence("IIII"),
sfc_sequence("RRRR"),
sfc_sequence("RRLL"),
nrow = 1
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.