phase1Plot: Plot of Phase 1 data

View source: R/phase1-plot.R

phase1PlotR Documentation

Plot of Phase 1 data

Description

phase1Plot and mphase1Plot plot univariate or multivariate Phase 1 observations, organized as required by the dfphase1 package.

Usage

phase1Plot(x)

mphase1Plot(x, layout = c(1, p))

Arguments

x

phase1Plot: a nxm numeric matrix or a numeric vector of length m.

mphase1Plot: a pxnxm data numeric array or a pxm numeric matrix.

Here, p denotes the number of variables, n the size of each subgroup and m the number of subgroups.

layout

an integer vector describing the multi-panel (and possible multi-page) layout. See the third example below.

Author(s)

Giovanna Capizzi and Guido Masarotto.

Examples

  x <- matrix(rt(5*20,5),5)
  x[,10] <- x[,10]+3
  phase1Plot(x)
  # a data set with many variables
  x <- array(rnorm(20*5*50),c(20,5,50))+10*(1:20)
  mphase1Plot(x)
  # it is better to organize the plot on two pages
  if (interactive()) old <- grDevices::devAskNewPage(TRUE)
  mphase1Plot(x,c(2,5,2))
  if (interactive()) grDevices::devAskNewPage(old)

dfphase1 documentation built on July 9, 2023, 7:29 p.m.