R/display-pca.r
display_pca.Rd
Animate a 2D tour path on data that has been transformed into principal components, and also show the original variable axes.
display_pca(
center = TRUE,
axes = "center",
half_range = NULL,
col = "black",
pch = 20,
cex = 1,
pc_coefs = NULL,
edges = NULL,
edges.col = "black",
...
)
animate_pca(data, tour_path = grand_tour(), rescale = TRUE, ...)
if TRUE, centers projected data to (0,0). This pins the center of data cloud and make it easier to focus on the changing shape rather than position.
position of the axes: center, bottomleft or off
half range to use when calculating limits of projected. If not set, defaults to maximum distance from origin to each row of data.
color to be plotted. Defaults to "black".
shape of the point to be plotted. Defaults to 20.
size of the point to be plotted. Defaults to 1.
coefficients relating the original variables to principal components. This is required.
A two column integer matrix giving indices of ends of lines.
colour of edges to be plotted, Defaults to "black.
other arguments passed on to animate
and
display_slice
matrix, or data frame containing numeric columns
tour path generator, defaults to 2d grand tour
if true, rescale all variables to range [0,1].