windrose_get_cols | R Documentation |
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)
x |
2-D matrix with counts (see |
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 |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.