Hi there, I am plotting relative warp scores (equivalent to pca scores) and I want to label (color code and shape) the points by group. I can't figure out how to do this beyond simple plotting. plot(RW1, RW2); Do I need to make vectors of each group and then plot them separately onto the same plot? How do I go about this? Thanks! -- View this message in context: http://www.nabble.com/Labeling-points-on-plot-on-relative-warp-scores--tp23002055p23002055.html Sent from the R help mailing list archive at Nabble.com.
Specify corresponding vectors for the argument "cex" and "pch". Best, Uwe Ligges stephalope wrote:> Hi there, > > I am plotting relative warp scores (equivalent to pca scores) and I want to > label (color code and shape) the points by group. I can't figure out how to > do this beyond simple plotting. > > plot(RW1, RW2); > > Do I need to make vectors of each group and then plot them separately onto > the same plot? How do I go about this? > > Thanks!
stephalope wrote:> Hi there, > > I am plotting relative warp scores (equivalent to pca scores) and I want to > label (color code and shape) the points by group. I can't figure out how to > do this beyond simple plotting. > > plot(RW1, RW2); > > Do I need to make vectors of each group and then plot them separately onto > the same plot? How do I go about this? >Hi stephalope, I've done this with "boxed.labels" in the plotrix package for factor analyses or PCAs when there aren't many variables. I use strong background colors for the box and white text for the variable names. You may have to shift some labels apart if they overlap, but it gives an easy to understand illustration of simple factor structures or PCAs. Jim