Question: column nubering plotMDS
0
gravatar for mictadlo
21 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 • 365 views
ADD COMMENTlink modified 21 months ago by Aaron Lun24k • written 21 months ago by mictadlo0
Answer: column nubering plotMDS
3
gravatar for Aaron Lun
21 months ago by
Aaron Lun24k
Cambridge, United Kingdom
Aaron Lun24k 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 21 months ago • written 21 months ago by Aaron Lun24k
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: 312 users visited in the last hour