Description Usage Arguments Value Examples
View source: R/column_chart_functions.R
Generate grouped column chart for visualizing up to 3 data series.
1 2 3 4 5 6 7 8 9 10 | column_chart_grouped(
x,
foreground,
background,
markers = NULL,
data = NULL,
series_labels,
styles = NULL,
interval = "months"
)
|
x |
vector containing labels for x axis or name of column in data with values of x axis labels |
foreground |
vector or name of column in data representing heights of bars visible in the foreground |
background |
vector or name of column in data representing heights of bars visible in the background |
markers |
optional vector representing position of triangles |
data |
data frame in wide format containing data to be plotted |
series_labels |
vector of series titles. Consists of 2 or 3 elements |
styles |
optional dataframe of styles. First column contains styles for foreground series, second for background, third for triangles. dim(styles) must be length(x), length(titles) |
interval |
intervals on x axis. The width of the bars depends on this parameter |
object of class tidychart with a character vector containing SVG elements
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.