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"). |
vlabels |
Character vector for the names for variables. |
caxislabels |
Range of values inside the spider plot (eg. caxislabels = c(0, 2, 5, 7, 10)). |
title |
Character vector for the radarchart title. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.