create_beautiful_radarchart: Create a customized spider plot

View source: R/create_beautiful_radarchart.R

create_beautiful_radarchartR Documentation

Create a customized spider plot

Description

This function make a customized spider plot using the fmsb package.

Usage

create_beautiful_radarchart(
  data,
  color = "#00AFBB",
  vlabels = colnames(data),
  caxislabels = NULL,
  title = NULL,
  ...
)

Arguments

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)).

Examples

## 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)


ShinyFabio/OliveHealthR documentation built on Oct. 17, 2024, 2:24 a.m.