Method to produce a parallel coordinate plot of the output of a correspondence regression.
# S3 method for corregp
pcplot(x, parm = "x", axes, add_ci = FALSE, cl = 0.95,
nq = TRUE, col = "darkgrey", cex = par("cex"), font = par("font"),
family = par("family"), lwd = par("lwd"), lty = par("lty"),
lcol = col, psym = NULL, pcol = col, pcex = cex, ecol = "red",
ewid = 1, etyp = 2, acol = "black", awid = 1, atyp = 1,
acex = cex, afnt = font, adir = 1, add_scale = FALSE, main = NULL,
sub = NULL, ...)pcplot(x, ...)
The output of a call to corregp
(i.e. an object of class "corregp").
The parameter for which to plot the coordinates. Can be either "y"
, "x"
, or any vector of term names in X, level names in X or
level names in Y. Defaults to "x"
.
The axes to plot.
Logical specifying whether to include the confidence intervals. Defaults to FALSE
.
The confidence level for the confidence intervals. Defaults to 0.95
.
Color of the text labels: either numeric
or see colors
.
Character expansion factor: a number to specify the size of the text labels.
Font of the text labels: 1
for plain, 2
for bold, 3
for italic, and 4
for bold italic. Defaults to 1
.
Font family of the text labels: can be "serif"
, "sans"
, "mono"
or one of the Hershey
fonts.
Width of the connecting lines: a number to specify the line width.
Line type of the connecting lines: 0
or "blank"
, 1
or "solid"
, 2
or "dashed"
, 3
or
"dotted"
, 4
or "dotdash"
, 5
or "longdash"
, 6
or "twodash"
. Defaults to 1
.
Color of the connecting lines: either numeric
or see colors
.
The symbol (or "plotting character") for the values of the coordinates on the axes.
Color of the symbol for the values on the axes: either numeric
or see colors
.
Character expansion factor of the symbol for the values on the axes.
Color of the error lines (connecting the confidence intervals on each axis): either numeric
or see colors
.
Width of the error lines (connecting the confidence intervals on each axis): a number to specify the line width.
Line type of the error lines (connecting the confidence intervals on each axis): 0
or "blank"
, 1
or "solid"
,
2
or "dashed"
, 3
or "dotted"
, 4
or "dotdash"
, 5
or "longdash"
, 6
or
"twodash"
. Defaults to 2
.
Color of the parallel axes: either numeric
or see colors
.
Width of the parallel axes: a number to specify the line width.
Line type of the parallel axes: 0
or "blank"
, 1
or "solid"
, 2
or "dashed"
, 3
or
"dotted"
, 4
or "dotdash"
, 5
or "longdash"
, 6
or "twodash"
. Defaults to 1
.
Character expansion factor for the labels of the parallel axes.
Font for the labels of the parallel axes: 1
for plain, 2
for bold, 3
for italic, and 4
for bold italic.
Reading direction of the labels on the parallel axes: either a numeric
value between 0
and 3
(see the las
argument in the graphical parameters par
) or a character
value matching either "horizontal"
or
"vertical"
. Defaults to 1
(horizontal).
Logical specifying whether to add a scale for the parallel axes (which are normalised).
The main title of the plot.
The subtitle of the plot.
Further arguments passed to or from other methods.
A parallel coordinate plot containing the output of a correspondence regression.
Although adding lines for confidence intervals is possible, it is not recommended, as it typically leads to an unreadable plot.
ciplot.corregp
, plot.corregp
, plot3d.corregp
, agplot.corregp
.
# NOT RUN {
data(HairEye)
haireye.crg <- corregp(Eye ~ Hair * Sex, data = HairEye, b = 3000)
pcplot(haireye.crg, parm = "y", axes = 1:3)
pcplot(haireye.crg, parm = c("Hair", "Sex"), axes = 1:3)
# }
Run the code above in your browser using DataLab