plotLoadings {Rnmr1D}R Documentation

plotLoadings

Description

Plots the two components defined by pc1, pc2 of the matrix of variable loadings coming from a multivariable analysis, typically a Principal Component Analysis (PCA). It can also plot the ellipses corresponding to each cluster defined by the associations matrix if not null. (in fact it is the main interest of this function).

Usage

plotLoadings(
  data,
  pc1,
  pc2,
  associations = NULL,
  main = "Loadings",
  xlimu = c(min(data[, pc1]), max(data[, pc1])),
  ylimu = c(min(data[, pc2]), max(data[, pc2])),
  cexlabel = 1,
  pch = 20,
  ellipse = TRUE,
  level = 0.8
)

Arguments

data

the matrix of variable loadings 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.

associations

the associations matrix that gives for each cluster (column 2) the corresponding buckets (column 1)

main

Change the default plot title on the rigth corner

xlimu

gives the limit to be plotted of the first component

ylimu

gives the limit to be plotted of the second component

cexlabel

number indicating the amount by which plotting text and symbols should be scaled relative to the default.

pch

Plotting Symbols

ellipse

boolean - specifies if ellipses are plot or not for each cluster

level

confidence level for plotting the ellipses


[Package Rnmr1D version 1.3.2 Index]