Learn R Programming

parafac4microbiome (version 1.1.2)

plotModelMetric: Plot diagnostics of many initialized PARAFAC models.

Description

Plot diagnostics of many initialized PARAFAC models.

Usage

plotModelMetric(
  metric,
  plottingMode = "box",
  ylabel = "metric",
  titleString = ""
)

Value

A plot of the metrics

Arguments

metric

Matrix of metrics per initialized model (number of models x number of components).

plottingMode

Plot the metrics as a box plot ("box", default) or as a bar plot ("bar").

ylabel

String of the y axis label (default "metric").

titleString

String of the plot title (default "").

Examples

Run this code
varExp = array(runif(100*2, min=50, max=100), c(100,2))
plotModelMetric(varExp, plottingMode="box", ylabel="Variation explained (%)")

Run the code above in your browser using DataLab