[R] Multiple scatterplots

John Kane jrkrideau at yahoo.ca
Wed May 2 20:06:29 CEST 2007


Your title and your posting do not say the same thing.
 

Assuming you want all three distributions on one
scatter plot does this help?

aa <- 1:10
bb <- 11:2
cc  <- bb^2
dd <- c(3,4,7,9,11,32,11,14,5,9)

plot(aa,cc, col="red")
points(aa,bb, col="blue")
points(aa,dd, col="green")

Also in plotting it is a good idea to look at all the
variations etc that you can get with par()

Type  ?par 

--- Kostadin Cholakov <kcholakov at gmail.com> wrote:

> Hi,
> 
> I have to plot three Ziph distributions for three
> languages where the
> x value represents the rank of a given word and the
> y value represents
> the relative frequency of this word in the corpus.
> Is there some way
> so that I can plot all three distributions on a
> single scatterplot,
> preferably with different colours :) I tried to find
> something in the
> R manual but there are no such examples :( Thank
> you!
> 
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>



More information about the R-help mailing list