The windrose method provides one windrose/wind count plot type. Based on the count matrix (windrose_get_counts) this function returns a matrix with hex colors (with alpha channel) and a data.frame used for the legend.

windrose_get_cols(x, col, p = 1, ncol = 50L)

Arguments

x

2-D matrix with counts (see windrose_get_counts).

col

single hex color, or a vector of hex colors. Alpha channel will be removed.

p

numeric value, power parameter for non-linear color transformation.

ncol

integer, if col is a single value the color will be repeated ncol times. Default is 50L.

Value

Returns a list with two elements: colormatrix of the same dimension as x with colors for the different bins based on the counts, and legend with levels and colors for the color legend of the plot.