Learn R Programming

mumarinex (version 1.0)

decomplot: Decomposition of the MUMARINEX value into its three sub-indices and representation as boxplots

Description

Generates a graphical representation (boxplot) of MUMARINEX sub-indices to assess which component(s) contribute most strongly to the overall MUMARINEX score.

Usage

decomplot(
  x,
  g,
  ref,
  fill = c("lightblue", "#FFFFE0DF", "#90F0909E"),
  border = c("#0080AB", "#C7C700DF", "#0091009E"),
  main = NULL
)

Value

A boxplot of length g representing the variations in the different MUMARINEX sub-indices (CSR, CBCD, and CPI).

Arguments

x

A data frame organized with samples in rows and species in columns.

g

A vector of length nrow(x) indicating how the samples should be grouped (e.g., stations, treatments).

ref

A logical or numeric vector identifying the reference row positions.

fill

Fill color of the boxplots.

border

Border color of the boxplots.

main

Main title of the plot.

Details

Decomposition of the MUMARINEX value into its three sub-indices and representation as boxplots

See Also

diagnostic_tool()

Examples

Run this code
data("Simulated_data")
ref_idx<-41:50
stations<-matrix(unlist(strsplit(rownames(Simulated_data),".",fixed=TRUE)),ncol=2,byrow=TRUE)[,1]
decomplot(x=Simulated_data,g=stations,ref=ref_idx,main="Simulated data")

Run the code above in your browser using DataLab