This is useful for marking/labeling notable events along the streams.
1 2 3 | sg_add_marker(sg, x, label = "", stroke_width = 0.5,
stroke = "#7f7f7f", space = 5, y = 0, color = "#7f7f7f",
size = 12, anchor = "start")
|
sg |
streamgraph object |
x |
horizontal position |
label |
text for the annotation |
stroke_width |
line width |
stroke |
line color |
space |
space (in points) from the marker to place the label |
y |
vertical position |
color |
color of the label |
size |
font size#' @export |
anchor |
how to justify the label (one of |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.