fDColorPalette: A set of fancy color to plot functional datasets

Description Usage Arguments Details See Also Examples

View source: R/utils.R

Description

This function can be used to generate a palette of colors useful to plot functional datasets with the plot methods.

Usage

1
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 scales::hue_pal

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

plot.fData, plot.mfData

Examples

1
2
3
4
5
6
7
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 )

roahd documentation built on Nov. 4, 2021, 1:07 a.m.