Learn R Programming

mdatools (version 0.9.1)

plotScores.pca: Scores plot for PCA

Description

Shows a scores plot for selected components.

Usage

# S3 method for pca
plotScores(obj, comp = c(1, 2), type = "p", main = "Scores",
  xlab = NULL, ylab = NULL, show.labels = F, show.legend = NULL,
  cgroup = NULL, show.axes = TRUE, ...)

Arguments

obj

a PCA model (object of class pca)

comp

a value or vector with several values - number of components to show the plot for

type

type of the plot ('b', 'l', 'h')

main

main title for the plot

xlab

label for x axis

ylab

label for y axis

show.labels

logical, show or not labels for the plot objects

show.legend

logical, show or not a legend on the plot

cgroup

a vector with numeric values or a factor used for color grouping of plot points.

show.axes

logical, show or not a axes lines crossing origin (0,0)

...

other plot parameters (see mdaplotg for details)

Details

See examples in help for pca function.