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, manip_col = "blue", theta = pi * 5/12, z_col = "red", labels = paste0("V", 1:nrow(basis)))
A (p, d) basis, XY linear combination of each dimension (numeric variable).
Number of the column/dimension to rotate.
String of the color to highlight the manip_var.
manip_var
Angle in radians to rotate the manip space. Defaults to pi * 5/12.
Color to illustrate the z direction or out of the projection plane.
Optional, character vector of p length, add name to the axes in the reference frame, typically the variable names.
p
ggplot object of the basis.
# NOT RUN { flea_std <- tourr::rescale(tourr::flea[, 1:6]) rb <- basis_random(ncol(flea_std), 2) view_manip_space(basis = rb, manip_var = 4) # }
Run the code above in your browser using DataLab