[R] How to draw dot plots for 2 vectors seperately

From: ss <affysnp_at_gmail.com>
Date: Tue, 08 Jul 2008 11:58:01 -0400


Hi all,

I want to draw dot plots for 2 rows in a matrix separately but want to have them close to each other.

For example, I have a matrix a:

> dim(a)

[1] 319 2

and then transpose it to matrix b

> b<-t(a)
> dim(b)

[1] 2 319

So I want to draw dot plots for these two rows separately but want them close
to each other so that I am able to cross-compare each other. If they can only
be drawn in a single figure, I want them be represented by different colors so
that I could distinguish them.

I tried:

dotchart(b,xlim=c(0,100))

but it is not what I want actually.

Thanks for your suggestions!

Best,

    Allen

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 08 Jul 2008 - 16:02:26 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 08 Jul 2008 - 16:32:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive