Re: [R] qplot: plotting precipitation data

2012-09-20 Thread Winston Chang
= > "data.frame") > > ggplot(mydata) + > geom_rect(aes(xmin = start, xmax = end, ymin = 0, ymax = peak)) > > unique(mydata$start) > unique(mydata$end) > > levels <- sort(unique(c(mydata$start, mydata$end))) > mydata$start <- factor(mydata$start, leve

Re: [R] qplot: plotting precipitation data

2012-09-20 Thread Hadley Wickham
art))) >> [1] 1 2 3 4 5 6 >> >> so why would we get something like 2 3 4 5 6 1 if I am reading this >> correctly? >> >> >>> Rui Barradas >>> >>> Em 16-09-2012 00:20, John Kane escreveu: >>>> >>>> Thanks for the data.

Re: [R] qplot: plotting precipitation data

2012-09-16 Thread Rui Barradas
to specify it there. p <- ggplot(mydata , aes(as.factor(start), peak )) + geom_bar(stat= "identity", ) p John Kane Kingston ON Canada -Original Message- From: hnorp...@googlemail.com Sent: Sat, 15 Sep 2012 18:39:54 +0200 To: r-help@r-project.org Subject: [R] qplot: plottin

Re: [R] qplot: plotting precipitation data

2012-09-16 Thread John Kane
> -Original Message- > From: ruipbarra...@sapo.pt > Sent: Sun, 16 Sep 2012 13:13:47 +0100 > To: jrkrid...@inbox.com > Subject: Re: [R] qplot: plotting precipitation data > > Hello, > > Relative to the op's "request" for rectangls, I'm not u

Re: [R] qplot: plotting precipitation data

2012-09-16 Thread Rui Barradas
peak )) + geom_bar(stat= "identity", ) p John Kane Kingston ON Canada -Original Message- From: hnorp...@googlemail.com Sent: Sat, 15 Sep 2012 18:39:54 +0200 To: r-help@r-project.org Subject: [R] qplot: plotting precipitation data Dear list, I wish to plot chromatin precipit

Re: [R] qplot: plotting precipitation data

2012-09-15 Thread John Kane
there. p <- ggplot(mydata , aes(as.factor(start), peak )) + geom_bar(stat= "identity", ) p John Kane Kingston ON Canada > -Original Message- > From: hnorp...@googlemail.com > Sent: Sat, 15 Sep 2012 18:39:54 +0200 > To: r-help@r-project.org > Subject: [R] q

[R] qplot: plotting precipitation data

2012-09-15 Thread Hermann Norpois
Dear list, I wish to plot chromatin precipitation data: I would like to have a rectangles (x:end-start, y:peak) but I do not have an idea how to define x (in terms of qplot syntax) and to choose the correct geom. mydata is a subset of a larger file. > mydata chromstart end peak