interpolate | R Documentation |
This function adds supplementary points and variables to the plot from a new data set.
interpolate(bp, newdata = NULL, newvariable = NULL)
bp |
an object of class |
newdata |
a new data set, similar in structure to the data set supplied to |
newvariable |
a new data set, similar in structure to the data set supplied to |
The object of class biplot
will be appended with the following elements:
Xnew.raw |
the new data. |
Xnew |
the matrix of the centered and scaled new numeric variables of new data. |
Xnew.cat |
the matrix of the categorical variables of new data. |
Znew |
the matrix of the coordinates of the new data in the biplot. |
For an object of class CA
the following additional elements will be appended:
newrowcoor |
the matrix of row coordinates of the new data in the biplot. |
newcolcoor |
the matrix of column coordinates of the new data in the biplot. |
biplot(data = iris[1:145,]) |> PCA() |> interpolate(newdata = iris[146:150,]) |> plot()
biplot(HairEyeColor[,,2], center = FALSE) |> CA(variant = "Symmetric") |>
interpolate(newdata = HairEyeColor[,,1]) |> plot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.