plot.INDSCAL: Plot an INDSCAL group configuration and source weights

View source: R/plot.R

plot.INDSCALR Documentation

Plot an INDSCAL group configuration and source weights

Description

Given an object of class INDSCAL, generates two plots: the group configuration and the subject weights. Together, these describe a 3-way MDS model.

Usage

## S3 method for class 'INDSCAL'
plot(
  x,
  asp = 1,
  pch = NA,
  pos = NULL,
  col = "black",
  bg = "white",
  cex = 1,
  xlab = "X",
  ylab = "Y",
  xaxt = "n",
  yaxt = "n",
  option = 2,
  ...
)

Arguments

x

an object of class INDSCAL

asp

the aspect ratio of the plot

pch

plot symbol (may be a vector)

pos

position of the sample labels relative to the plot symbols if pch != NA

col

plot colour (may be a vector)

bg

background colour (may be a vector)

cex

relative size of plot symbols

xlab

a string with the label of the x axis

ylab

a string with the label of the y axis

xaxt

if = 's', adds ticks to the x axis

yaxt

if = 's', adds ticks to the y axis

option

either:

0: only plot the group configuration, do not show the source weights

1: only show the source weights, do not plot the group configuration

2: show both the group configuration and source weights in separate windows

...

optional arguments to the generic plot function

See Also

indscal

Examples

data(Namib)
coast <- c('N1','N2','N3','N10','N11','N12','T8','T13')
snames <- names(Namib$DZ)
pch <- rep(21,length(snames))
pch[which(snames %in% coast)] <- 22
plot(indscal(Namib$DZ,Namib$HM),pch=pch)

provenance documentation built on May 29, 2024, 4:23 a.m.