powered by
Uses base graphics to plot the circle with axes representing the projection frame. Returns the corresponding table.
view_manip_space( basis, manip_var, tilt = 1/12 * pi, lab = paste0("V", 1:nrow(basis)), manip_col = "blue", z_col = "red" )
A (p, d) orthonormal numeric matrix. The linear combination the original variables contribute to projection space. Required, no default.
Number of the column/dimension to rotate.
angle in radians to rotate the projection plane. Defaults to pi * 5/12.
Optional, character vector of p length, add name to the axes in the reference frame, typically the variable names.
p
String of the color to highlight the manip_var.
manip_var
Color to illustrate the z direction or out of the projection plane.
ggplot object of the basis.
# NOT RUN { flea_std <- tourr::rescale(tourr::flea[, 1:6]) rb <- tourr::basis_random(ncol(flea_std), 2) view_manip_space(basis = rb, manip_var = 4) # }
Run the code above in your browser using DataLab