ggplotScores: ggplotScores

Description Usage Arguments

Description

Plots the two components defined by pc1, pc2 of the matrix of scores coming from a multivariable analysis, typically a Principal Component Analysis (PCA).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
ggplotScores(
  data,
  pc1 = 1,
  pc2 = 2,
  groups = NULL,
  EV = NULL,
  main = "Scores",
  glabels = FALSE,
  psize = 3,
  gcontour = "ellipse",
  params = list(cellipse = 0.95)
)

Arguments

data

the matrix of scores coming from a multivariable analysis, typically a Principal Component Analysis (PCA)

pc1

the fist component of the matrix of variable loadings to be plotted.

pc2

the second component of the matrix of variable loadings to be plotted.

groups

the vector defining the factorial groups (same dimension as data rows)

EV

Eigenvalues vector

main

the plot main title

glabels

boolean indicating if labels have to be plotted

psize

point size

gcontour

type of contour; possible values are : 'ellipse', 'polygon', 'ellipse2', 'none'

params

parameters depending on the contour type


Rnmr1D documentation built on Nov. 10, 2021, 9:07 a.m.