View source: R/create_beautiful_radarchart.R
create_beautiful_radarchart | R Documentation |
This function make a customized spider plot using the fmsb package.
create_beautiful_radarchart(
data,
color = "#00AFBB",
vlabels = colnames(data),
caxislabels = NULL,
title = NULL,
...
)
data |
A dataframe with 3 or 4 rows and some column (columns will be the variables in the spider plot). The rows must contain a row with maximum values and a row with mininum values, plus one or two rows with a "Codice_azienda". |
color |
Function that provides colors to the plot. For example color = grDevices::hcl.colors(2, palette = "Dynamic"). |
caxislabels |
Range of values inside the spider plot (eg. caxislabels = c(0, 2, 5, 7, 10)). |
## Not run:
create_beautiful_radarchart(
radardatamm[c("Max", "Min", "SA_10_massa_ultima","AV_02_massa_ultima"),],
caxislabels = c(0, 2, 4, 6, 8, 10),
color = grDevices::hcl.colors(2, palette = "Dynamic")
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.