Question: column nubering plotMDS
0
gravatar for mictadlo
19 months ago by
mictadlo0
mictadlo0 wrote:

Hi, I have followed this paper but I have problem to undestand the following piece of code:

> pch <- c(0,1,2,15,16,17)
> colors <- rep(c("darkgreen", "red", "blue"), 2)
> plotMDS(y, col=colors[group], pch=pch[group])
> legend("topleft", legend=levels(group), pch=pch, col=colors, ncol=2)

What do these numbers mean c(0,1,2,15,16,17)?

Thank you in advance.

edger plotmds • 337 views
ADD COMMENTlink modified 19 months ago by Aaron Lun23k • written 19 months ago by mictadlo0
Answer: column nubering plotMDS
3
gravatar for Aaron Lun
19 months ago by
Aaron Lun23k
Cambridge, United Kingdom
Aaron Lun23k wrote:

Have a look at ?points. Or, should you need something more visual, try:

plot(1:25, pch=1:25)
text(1:25, 1:25, pos=3)
ADD COMMENTlink modified 19 months ago • written 19 months ago by Aaron Lun23k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 160 users visited in the last hour