interpolate {biplotEZ} | R Documentation |
Interpolation of new samples
Description
Interpolation of new samples
Usage
interpolate(bp, newdata)
Arguments
bp |
an object of class |
newdata |
a new data set, similar in structure to the data set supplied to |
Value
Object of class PCA with the following elements:
X |
matrix of the centered and scaled numeric variables. |
Xcat |
matrix of the categorical variables. |
raw.X |
original data. |
na.action |
vector of observations that have been removed. |
center |
TRUE or FALSE, whether X is centred. |
scaled |
TRUE or FALSE, whether X is scaled. |
means |
mean of each numerical variable. |
sd |
standard deviation of each numerical variable. |
n |
number of observations. |
p |
number of variables. |
group.aes |
vector of the same length as the number of rows in the data matrix for differentiated aesthetics for samples. |
g.names |
descriptive name to be used for group labels. |
g |
number of groups. |
Title |
title of the biplot to be rendered |
Z |
matrix with each row containing the details of the point to be plotted (i.e. coordinates). |
Lmat |
matrix for transformation to the principal components. |
e.vects |
vector indicating which principal components are plotted in the biplot. |
ax.one.unit |
one unit in the positive direction of each biplot axis. |
Xnew.raw |
newdata numerical variables. |
Xnew |
matrix of the centered and scaled new numeric variables. |
Xnew.cat |
matrix of the new categorical variables. |
Znew |
matrix of the coordinates of the newdata in the biplot. |
Examples
biplot(data = iris[1:145,]) |> PCA() |> interpolate(newdata = iris[146:150,]) |> plot()