GraphPTCABoot: GraphPTCABoot plots the bootstrapped results of a CA

View source: R/Plot4CATA.R

GraphPTCABootR Documentation

GraphPTCABoot plots the bootstrapped results of a CA

Description

GraphPTCABoot plots the results of a CA with bootstrap computed Ellipsoids or Convex Hulls confidence interval. GraphPTCABoot needs packages prettyGraphs (for the graph) and the convex Hulls and car (for the ellipses).

Usage

GraphPTCABoot(
  FS,
  FBoot,
  axis1 = 1,
  axis2 = 2,
  item.colors = NULL,
  ZeTitle = "PTCA-Bootstrap",
  constraints = NULL,
  nude = FALSE,
  Ctr = NULL,
  lwd = 3.5,
  ellipses = TRUE,
  fill = TRUE,
  fill.alpha = 0.27,
  percentage = 0.95,
  dev.new = TRUE,
  new.plot = TRUE,
  cex = 1,
  text.cex = 0.8,
  pos = 2
)

Arguments

FS

(factor scores) The coordinates of the items to be plotted.

FBoot

The Bootstrap cube of factor scores.

axis1

(default is 1) position in FS of the horizontal axis

axis2

(default is 2), position in FS of the vertical axis

item.colors

(default is NULL), a color matrix/vector for the items (could be provided from a previous call to the graph routine).

ZeTitle

(default is 'PTCA-Bootstrap') a Title for the plot

constraints

(default is NULL) the dimensions of the plot as a list giving the constraints = list(minx=number1,miny=number2, maxx=number3,maxy=number4). Often provided from a previous plot.

nude

(default is FALSE), when TRUE do not plot names.

Ctr

(default is NULL), if TRUE have the dots for the item proportional to their contributions to the plane.

lwd

(default is 3.5) line width for the ellipse (from dataEllipse).

ellipses

(default is TRUE) when TRUE plot ellipses, when FALSE plot convex hulls,

fill

(default is TRUE) when TRUE fill in the ellipses with lighter colors.

fill.alpha

(default is .27) alpha-transparency for filling (see parameter fill) ellipses/convex-hulls.

percentage

(default is 0.95) critical value for the CIs

dev.new

(default is TRUE) when TRUE create a new window for plotting.

new.plot

when TRUE (default) Clean the device.

cex

(default is 1) size of the dots

text.cex

(default is .8) # size of text (to avoid conflicts with cex)

pos

(default is 2) position of the text can be a scalar or a vector

Value

PTCA.out: the output from prettyPlot

Author(s)

Hervé Abdi


HerveAbdi/PTCA4CATA documentation built on July 17, 2022, 5:41 a.m.