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

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.


ShinyFabio/ADViSELipidomics documentation built on March 21, 2023, 7:30 a.m.