GetNumColors | R Documentation |
Returns the number of colors needed in a chart. This is returned as a list because more than one color-series may be required (e.g. Pie chart)
GetNumColors(
data,
chart.type,
scatter.colors.column = 4,
multi.color.series = FALSE
)
data |
Input data, a named vector or matrix. |
chart.type |
Type of chart to plot |
scatter.colors.column |
For scatterplot data, the column of data which is used to determine the colors of each point. |
multi.color.series |
For bar and column charts, a logical indicating
how colors are used. By default, this value is set to FALSE, in which case
the number of colors returned is equal to the number of data series (or columns)
in |
An integer specifying the number of colors used by the chart.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.