axes.Rd
This function allows the user to format the aesthetics for the biplot axes.
axes(bp, X.names=colnames(bp$X), which = 1:bp$p, col = grey(0.7), lwd = 1, lty = 1,
label.dir = "Orthog", label.col = col, label.cex = 0.75, label.line = 0.1,
label.offset=rep(0,4), ticks = 5, tick.col = col, tick.size = 1, tick.label = TRUE,
tick.label.side = "below", tick.label.col = tick.col, tick.label.cex = 0.6,
predict.col = col, predict.lwd = lwd, predict.lty = lty, ax.names = X.names,
orthogx = 0, orthogy = 0, vectors = FALSE, unit.circle=FALSE)
an object of class biplot
.
a vector of column names of bp
to specify which axes should be labelled.
a vector containing the columns or variables for which the axes should be displayed, with default 1:p
.
the colour(s) for the axes, with default grey(0.7)
. Alternatively, provide a vector of colours corresponding to X.names
.
the line width(s) for the axes, with default 1
.
the line type(s) for the axes, with default 1
.
a character string indicating the placement of the axis titles to the side of the figure. One of "Orthog
" for axis titles to appear orthogonal to the side of the figure (default) , "Hor
" for axis titles to appear horizontally or "Paral
" for axis titles to appear parallel to the side of the figure.
the colour(s) for the axis labels, with default, col
.
the label expansion for the axis labels, with default 0.75
.
the distance of the axis title from the side of the figure, with default 0.1
.
a four-component numeric vector controlling the distances axis titles are displayed from the side of the figure, with default rep(0,4)
. Sides are numbered 1
to 4
according to R
conventions.
an integer-valued vector indicating the number of tickmarks for each axis, with default 5
for each axis.
the colour(s) for the tick marks, with default col
.
a vector specifying the sizes of tick marks for each axis, with default 1
for each .
a logical value indicating whether the axes should be labelled, with default TRUE
.
a character string indicating the position of the tick label. One of "below
" for the label to appear below the tick mark (default) or "above
" for the label to appear above the tick mark.
the colour(s) for the tick mark labels, with default tick.col
.
the label expansion for the tick mark labels, with default 0.6
.
the colour(s) for the predicted samples, with default col
.
the line width(s) for the predicted samples, with default lwd
.
the line type(s) for the predicted samples, with default lty
.
a vector of size p
containing user defined titles for the axes.
a numeric vector of size p
specifying the x-coordinate of the parallel transformation of each axis, with default 0
for each axis. This is only used when dim.biplot = 2
.
a numeric vector of size p
specifying the y-coordinate of the parallel transformation of each axis, with default 0
for each axis. This is only used when dim.biplot = 2
.
a logical value indicating whether vector representation (calibrated axes) should be displayed on the biplot. This is only used when a PCA biplot is produced.
a logical value indicating whether a unit circle should be displayed on the biplot.
The object of class biplot
will be appended with a list called axes
containing the following elements:
a vector containing the columns for which the axes are displayed.
the colour(s) of the axes.
the line width(s) of the axes.
the line type(s) of the axes.
the placement of the axis titles to the side of the figure.
the colour(s) of the axis titles.
the label expansion(s) of the axis titles.
the distance(s) of the axis titles from the side of the figure.
the number of tick marks per axis.
the colour(s) of the tick marks.
the size(s) of the tick marks.
logical value(s) indicating whether axes are labelled.
the position of the tick mark labels.
the colour(s) of the tick mark labels.
the expansion(s) of the tick mark labels.
the colour(s) of the predicted samples.
the line type(s) of the predicted samples.
the line width(s) of the predicted samples.
the user defined axis titles.
the horizontal translations for each axis.
the vertical translations for each axis.
a logical value indicating whether calibrated axes are plotted.