ggplotScores: ggplotScores

ggplotScoresR Documentation

ggplotScores

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

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


INRA/Rnmr1D documentation built on April 11, 2024, 1:29 a.m.