plotExtreme.pca: Extreme plot

View source: R/pca.R

plotExtreme.pcaR Documentation

Extreme plot

Description

Shows a plot with number of expected vs. number of observed extreme objects for different significance levels (alpha values)

Usage

## S3 method for class 'pca'
plotExtreme(
  obj,
  res = obj$res[["cal"]],
  comp = obj$ncomp.selected,
  main = "Extreme plot",
  xlab = "Expected",
  ylab = "Observed",
  pch = rep(21, length(comp)),
  bg = mdaplot.getColors(length(comp)),
  col = rep("white", length(comp)),
  lwd = ifelse(pch %in% 21:25, 0.25, 1),
  cex = rep(1.2, length(comp)),
  ellipse.col = "#cceeff",
  legend.position = "bottomright",
  ...
)

Arguments

obj

a PCA model (object of class pca)

res

object with PCA results to show the plot for (e.g. calibration, test, etc)

comp

vector, number of components to show the plot for

main

plot title

xlab

label for x-axis

ylab

label for y-axis

pch

vector with values for pch parameter for each number of components

bg

vector with background color values for series of points (if pch=21:25)

col

vector with color values for series of points

lwd

line width for point symbols

cex

scale factor for data points

ellipse.col

color for tolerance ellipse

legend.position

position of the legend

...

other arguments


mdatools documentation built on Aug. 13, 2023, 1:06 a.m.