Use this function to place text at any point on a streamgraph. This is especially useful for non-interactive streamgraphs (i.e. to label a particular stream).
1 | sg_annotate(sg, label, x, y, color = "black", size = 12)
|
sg |
streamgraph object |
label |
text for the annotation |
x |
horizontal position |
y |
vertical position |
color |
color of the label |
size |
font size |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.