spiral_lines | R Documentation |
Add lines to a track
spiral_lines(
x,
y,
type = "l",
gp = gpar(),
baseline = "bottom",
area = FALSE,
track_index = current_track_index()
)
x |
X-locations of the data points. |
y |
Y-locations of the data points. |
type |
Type of the line. Value should be one of "l" and "h". When the value is "h", vertical lines (or radial lines if you consider the polar coordinates) relative to the baseline will be drawn. |
gp |
Graphical parameters. |
baseline |
Baseline used when |
area |
Whether to draw the area under the lines? Note |
track_index |
Index of the track. |
No value is returned.
x = sort(runif(1000))
y = runif(1000)
spiral_initialize()
spiral_track()
spiral_lines(x, y)
spiral_initialize()
spiral_track()
spiral_lines(x, y, type = "h")
spiral_initialize()
spiral_track()
spiral_lines(x, y, area = TRUE, gp = gpar(fill = "red", col = NA))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.