Learn R Programming

languageR (version 1.5.0)

plot.corres: Plot method for correspondence objects

Description

This function defines a plot method for correspondence objects.

Usage

# S3 method for corres
plot(x, main = "", addcol = TRUE, extreme = 0, rcex = 1, rcol = 1, 
rlabels = "", stretch = 1.4, ccex = 1, ccol = 2, clabels = "", ...)

Arguments

x

A correspondence object as produced by corres.

main

A string used for the main title of the plot.

addcol

A logical, if true, columns are added to the plot.

extreme

If nonzero, defines quantiles that define the extremes such that only data points exceeding these extremes are plotted.

rcex

sets cex graphical parameter for rows.

rcol

sets color for rows.

rlabels

vector of row labels.

stretch

a number defining the degree to which the columns (or rows) should be stretched out for visual presentation.

ccex

sets cex graphical parameter for columns.

ccol

sets color for columns.

clabels

vector of column labels.

...

other parameters to be passed through to plotting functions.

Value

A plot on the graphics device.

See Also

See Also corres.fnc, link{corsup.fnc}.

Examples

Run this code
# NOT RUN {
  data(oldFrench)
  data(oldFrenchMeta)

  oldFrench.ca = corres.fnc(oldFrench)

  plot(oldFrench.ca)

  plot(oldFrench.ca, rlabels = oldFrenchMeta$Genre, 
  rcol = as.numeric(oldFrenchMeta$Genre), rcex = 0.5, 
  extreme = 0.1, ccol = "blue")
# }

Run the code above in your browser using DataLab