Stream | R Documentation |
Create a Streamtraph, which is an area chart centered around the x-axis rather than on top of it.
Stream(
x,
colors = c("#5C9AD3", "#ED7D31", "#A5A5A5", "#FFC000", "#4473C5", "#70AD46", "#255F91",
"#9E480D", "#636365", "#987300", "#26408B", "#42682B"),
global.font.family = "Arial",
global.font.color = rgb(44, 44, 44, maxColorValue = 255),
global.font.size = 10,
y.axis.show = TRUE,
y.tick.format = "",
y.number.ticks = 5,
x.tick.format = "%d %b %y",
x.tick.units = "Automatic",
x.tick.interval = 1,
hovertext.font.color = global.font.color,
hovertext.font.family = global.font.family,
hovertext.font.size = 11,
margin.top = 20,
margin.left = 50,
margin.bottom = 30,
margin.right = 40
)
x |
A |
colors |
A vector of colors of the streams. |
global.font.family |
Font family of tick labels. |
global.font.color |
Global font color as a named color in character format (e.g. "black") or an a hex code. |
global.font.size |
Font size of tick labels in pixels. |
y.axis.show |
Logical; if FALSE, the y-axis is not shown. |
y.tick.format |
A string representing a d3 formatting code for the y-axis. See https://github.com/d3/d3/blob/master/API.md#number-formats-d3-format |
y.number.ticks |
The total number of ticks on the y-axis. |
x.tick.format |
A string representing a d3 formatting code for the x.axis. See https://github.com/d3/d3/blob/master/API.md#number-formats-d3-format |
x.tick.units |
"Automatic", "Number", "Day", "Month" or "Year". |
x.tick.interval |
The frequency of ticks on the x-axis. Where the data crosses multiple years, re-starts at each year. If this is zero, it is determined from the data. |
hovertext.font.color |
Font color of hovertext as a string or hex code. |
hovertext.font.family |
Font family of hovertext. |
hovertext.font.size |
Font size of hovertext in pixels. |
margin.top |
Top margin (default should be fine, this allows for fine-tuning plot space) |
margin.left |
Left margin (default should be fine, this allows for fine-tuning plot space) |
margin.bottom |
Bottom margin (default should be fine, this allows for fine-tuning plot space) |
margin.right |
Right margin (default should be fine, this allows for fine-tuning plot space) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.