=
> "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
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.
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
> -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
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
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
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
7 matches
Mail list logo