newaxes | R Documentation |
This function allows the user to format the aesthetics for the supplementary (new) biplot axes.
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)
bp |
an object of class |
X.new.names |
a vector of the new column names of |
which |
a vector containing the new columns or variables for which the axes should be displayed, with default |
col |
the colour(s) for the axes, with default |
lwd |
the line width(s) for the axes, with default |
lty |
the line type(s) for the axes, with default |
label.dir |
a character string indicating the placement of the axis titles to the side of the figure. One of " |
label.col |
the colour(s) for the axis labels, with default, |
label.cex |
the label expansion for the axis labels, with default |
label.line |
the distance of the axis title from the side of the figure, with default |
ticks |
an integer-valued vector indicating the number of tickmarks for each axis, with default |
tick.col |
the colour(s) for the tick marks, with default |
tick.size |
a vector specifying the sizes of tick marks for each axis, with default |
tick.label |
a logical value indicating whether the axes should be labelled, with default |
tick.label.col |
the colour(s) for the tick mark labels, with default |
tick.label.cex |
the label expansion for the tick mark labels, with default |
tick.label.side |
a character string indicating the position of the tick label. One of " |
predict.col |
the colour(s) for the predicted samples, with default |
predict.lwd |
the line width(s) for the predicted samples, with default |
predict.lty |
the line type(s) for the predicted samples, with default |
ax.names |
a vector of size |
orthogx |
a numeric vector of size |
orthogy |
a numeric vector of size |
The object of class biplot
will be appended with a list called newaxes
containing elements similar to that of axes
.
biplot
, axes
biplot(data = iris[,1:2]) |> PCA() |> interpolate(newvariable = iris[3:4]) |>
newaxes(col="gold") |> plot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.