powered by
3D plot of PC scores with projections on coordinate planes
plot3DWithProj( pc, dims = c(1, 2, 3), plotProj = TRUE, grid = TRUE, col = 1, ff = 0.5, theta = -45, phi = 25 )
nothing
An rppca object
rppca
integer vector, which PCs to plot, defauts to 1:3
integer
vector
logical, whether to plot the projections
logical
logical, wheter to plot grids
the dot colours, integer or string, scalar or vector
numeric, offset for projection (proportion of the orthogonal axis's range)
numeric
polar coordinates in degrees. theta rotates round the vertical axis. phi rotates round the horizontal axis.
theta
phi
ped <- pedigree(pedMeta$fid, pedMeta$mid, pedMeta$id ) pc <- rppca(ped) plot3DWithProj(pc, col=as.numeric(factor(pedMeta$population)))
Run the code above in your browser using DataLab