fDColorPalette {roahd} | R Documentation |
A set of fancy color to plot functional datasets
Description
This function can be used to generate a palette of colors useful to plot
functional datasets with the plot
methods.
Usage
fDColorPalette(N, hue_range = c(0, 360), alpha = 0.8, ...)
Arguments
N |
number of different colors (ideally, functional observations). |
hue_range |
the range of hues in the HCL scheme. |
alpha |
the alpha channel parameter(s) of the colors (transparency). |
... |
additional parameters to be passed to |
Details
The function, built around scales::hue_pal
, allows to set up the
HCL parameters of the set of colors desired, and besides to set up the
alpha channel value.
See Also
Examples
N = 1e2
angular_grid = seq( 0, 359, length.out = N )
dev.new()
plot( angular_grid, angular_grid,
col = fDColorPalette( N, hue_range = c( 0, 359 ), alpha = 1 ),
pch = 16, cex = 3 )
[Package roahd version 1.4.3 Index]