Learn R Programming

CAvariants (version 5.0)

plotone: Secondary plot function

Description

This function produces a classical plot when the input parameter of the main code CAvariants has been set as plottype = "classic", or it gives a biplot when plottype = "biplot". This function allows the analyst to plot row and column points in graphical displays, using symbols and labels for each point. It is called internally from the main graphical function plot.CAvariants.

Usage

plotone(a1, a2, plottype, things, nthings, nvars, Thingcoord, Varcoord, 
inertiapc, thinggroup, thinggrlab, vargroup, vargrlab, thinglabels, varlabels, 
picsize, cex = 0.8, cex.lab = 0.8, type , catype , pos = 2)

Arguments

a1

The dimension reflected along the horizontal (polynomial or principal) axis in the graphical display.

a2

The dimension reflected along the vertical (polynomial or principal) axis in the graphical display.

plottype

The paramater for specifying what kind of graphical display is required. By default, plottype = "classic", otherwise plottype = "biplot".

things

The input parameter for specifying what variable is in principal coordinates. Its value is "row" or "column" in biplots "rows&columns" in classical plots.

nthings

The number of row categories.

nvars

The number of column categories.

Thingcoord

The coordinates of the row variable.

Varcoord

The coordinates of the column variable.

inertiapc

The percentage of explained inertia for each axis.

thinggroup

It is a list of two objects, the first is the vector of the ordered natural scores of the row variable, the second object is a vector of one whose length is equal to the row number.

thinggrlab

The set of plotting symbols and colours of the row variable.

vargroup

It is a list of two objects, the first is the vector of the ordered natural scores of the column variable, the second object is a vector of one whose length is equal to the column number.

vargrlab

The set of plotting symbols and colours of the column variable.

thinglabels

The labels of the row variable.

varlabels

The labels of the column variable.

picsize

The graphical parameter for specifying the size of the plotting area.

cex

The parameter for setting the size of character labels of points in graphical displays. By default, cex = 0.8.

cex.lab

The parameter that specifies the size of character labels of axes in graphical displays. By default, cex.lab = 0.8.

type

The graphical parameter that specifies the type of line to be drawn.

catype

The input parameter specifying what variant of correspondence analysis is to be performed.

pos

The parameter for specifying the position of point symbols in the graphical displays. By default, pos = 2.

References

Beh EJ and Lombardo R 2014 Correspondence Analysis: Theory, Practice and New Strategies. John Wiley & Sons. Lombardo R Beh EJ 2016 Variants of Simple Correspondence Analysis. The R Journal, 8 (2), 167--184.