spider_plot: Spider Plot faceted

View source: R/spider_plot.R

spider_plotR Documentation

Spider Plot faceted

Description

Produces spider plots highlighting different groups per facet and compares them to the remaining groups.

Usage

spider_plot(
  data,
  elements,
  group,
  levels = elements,
  ribbon = TRUE,
  ncol = NULL,
  ...
)

Arguments

data

Dataframe

elements

Select the elements to include in the plot as vector.

group

Select the grouping of the data set as character variable. This needs to be the name of a column in the data frame.

levels

Select sequence of elements.

ribbon

If TRUE the fourth and first quantile are summarised to a ribbon, if FALSE single lines for those samples are plotted.

ncol

Number of facet columns.

...

Arguments passed on to ggplot2::theme().


muhohl/geochem documentation built on March 4, 2025, 8:14 p.m.