newaxes {biplotEZ}R Documentation

Aesthetics for supplementary (new) biplot axes

Description

Aesthetics for supplementary (new) biplot axes

Usage

newaxes(bp, X.new.names=bp$var.names, which = 1:bp$num.vars, col = "orange", lwd = 1, 
lty = 1, label.dir = "Orthog", label.col = col, label.cex = 0.75, label.line = 0.1, 
ticks = 5, tick.col = col, tick.size = 1, tick.label = TRUE, tick.label.col = tick.col, 
tick.label.cex = 0.6, tick.label.side = "below", predict.col = col, predict.lwd = lwd, 
predict.lty = lty, ax.names = X.new.names, orthogx = 0, orthogy = 0)

Arguments

bp

object of class biplot

X.new.names

refers to the new column names of bp to specify which axes to label.

which

vector of new columns to be displayed in the biplot.

col

vector of size p specifying colours of labels of biplot axes. The default is grey(0.7).

lwd

axis line width, with default 1.

lty

axis line type, with default 1.

label.dir

One of "Orthog" (default), "Hor" or "Paral" specifying titles of axes to appear orthogonal to the side of the figure; always horizontally or always parallel to the side of the figure.

label.col

axis label colour, with default, col.

label.cex

axis label expansion, with default 0.75.

label.line

axis label written on which margin line, with default 0.1.

ticks

integer-valued vector of size equal to the number of biplot axes to control the number of tickmarks on each individual biplot axis. Default is 5 for each axis.

tick.col

tick mark colour, with default col.

tick.size

positive integer-valued vector with specifying tick mark sizes, with default 1.

tick.label

logical, whether axes should be labelled or not, with default TRUE.

tick.label.col

tick mark label colour, with default tick.col.

tick.label.cex

tick mark label expansion, with default 0.6.

tick.label.side

character vector specifying position of the tick label "below" or "above" the axis.

predict.col

predicted samples colour, with default col.

predict.lwd

predicted samples line width, with default lwd.

predict.lty

predicted samples line type, with default lty.

ax.names

vector of size p containing user defined names for the variables.

orthogx

numeric vector of size p specifying the x-coordinate of the parallel transformation of each axis. Defaults to zero for each axis. Only used when the dimension of the biplot is two.

orthogy

numeric vector of size p specifying the y-coordinate of the parallel transformation of each axis. Defaults to zero for each axis. Only used when the dimension of the biplot is two.

Value

an object of class biplot

Examples

biplot(data = iris[,1:2]) |> PCA() |> interpolate(newvariable = iris[3:4]) |> 
  newaxes(col="gold") |> plot()

[Package biplotEZ version 2.0 Index]