View source: R/preparecolors.R
PrepareColors | R Documentation |
GetNumColors
and ChartColors
.Generates vectors of colors for use by CChart.
Wrapper for GetNumColors
and ChartColors
.
PrepareColors(
dat,
chart.type,
small.multiples = FALSE,
multi.color.series = FALSE,
scatter.colors.column = 4,
palette = NULL,
palette.custom.color = NULL,
palette.custom.gradient.start = NULL,
palette.custom.gradient.end = NULL,
palette.custom.palette = NULL,
fit.palette = NULL,
fit.palette.custom.color = NULL,
fit.palette.custom.gradient.start = NULL,
fit.palette.custom.gradient.end = NULL,
fit.palette.custom.palette = NULL,
fit.CI.palette = NULL,
fit.CI.palette.custom.color = NULL,
fit.CI.palette.custom.gradient.start = NULL,
fit.CI.palette.custom.gradient.end = NULL,
fit.CI.palette.custom.palette = NULL,
subslice.palette = NULL,
subslice.palette.custom.color = NULL,
subslice.palette.custom.gradient.start = NULL,
subslice.palette.custom.gradient.end = NULL,
subslice.palette.custom.palette = NULL
)
dat |
The data to be plotted, from which the number of required colors are deduced. |
chart.type |
The name of plot to create. |
small.multiples |
Whether the chart is shown as small multiples.i |
multi.color.series |
Logical; Indicates whether multiple colors will be shown in a Bar or Column chart with a single series. By default this is off and different colors are used to distinguish between different series. However, when chart.type is "Pyramid", then |
scatter.colors.column |
For scatterplot data, the column of data which is used to determine the colors of each point. |
palette |
Specifies the color vector to be used for the chart data. It can be (1) A named palette from grDevices, RColorBrewer colorspace, or colorRamps; or
(2) A vector of colors which will be recycled to the length of the number of colors needed; or
(3) one of |
palette.custom.color |
A single color provided as a hex or character string. Only used if |
palette.custom.gradient.start |
A color specifying the start of the gradient when |
palette.custom.gradient.end |
A color specifying the end of the gradient when |
palette.custom.palette |
A vector or comma separated list of colors which will be recycled to the desired length. Only used if |
fit.palette |
As per |
fit.palette.custom.color |
As per |
fit.palette.custom.gradient.start |
As per |
fit.palette.custom.gradient.end |
As per |
fit.palette.custom.palette |
As per |
fit.CI.palette |
As per |
fit.CI.palette.custom.color |
As per |
fit.CI.palette.custom.gradient.start |
As per |
fit.CI.palette.custom.gradient.end |
As per |
fit.CI.palette.custom.palette |
As per |
subslice.palette |
As per |
subslice.palette.custom.color |
As per |
subslice.palette.custom.gradient.start |
As per |
subslice.palette.custom.gradient.end |
As per |
subslice.palette.custom.palette |
As per |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.