on of
uncertainties, a surgery of suppositions. ~M.J.Moroney
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Namens Chris Friedl
Verzonden: donderdag 28 februari 2008 13:51
Aan: r-help@r-project.org
Onderwerp: Re: [R] ggplot2 boxplot confusion
Hey thanks Thierry! I learned two thing
Hey thanks Thierry! I learned two things here ... position="identity" AND
x=dummy.
Can I ask where you learned these things. I've read a lot of the online
reference manual, "the book", other presentations of ggplot2 and don't
recall seeing these, especially the x=dummy reference.
Does this come
TECTED] [mailto:[EMAIL PROTECTED]
Namens Chris Friedl
Verzonden: woensdag 27 februari 2008 23:55
Aan: r-help@r-project.org
Onderwerp: Re: [R] ggplot2 boxplot confusion
Thierry
1.
ggplot(mydata, aes(y = VALUE, x = SERIES)) + geom_boxplot() +
facet_grid(.~
ID)
creates a grid with three ID columns
hadley wrote:
>
>> I noticed the coord flip problem during my ggplot investigations. Is
>> this
>> something I can override by getting into the code?
>
> However, there is one geom that is parameterised in the opposite
> direction: geom_vline. So your second option "just draw the density
> p
> I noticed the coord flip problem during my ggplot investigations. Is this
> something I can override by getting into the code?
The basic problem is all the geoms/stats in ggplot are based around
the assumption that we are interested in Y | X, rather than X | Y. I
don't think this is an unreas
Hi Hadley
First off, thanks for ggplot2 and everything that bringing it to life and
sustaining it entails.
I noticed the coord flip problem during my ggplot investigations. Is this
something I can override by getting into the code?
On the coord flipping problem I was thinking to grab the densit
Thierry
1.
ggplot(mydata, aes(y = VALUE, x = SERIES)) + geom_boxplot() + facet_grid(.~
ID)
creates a grid with three ID columns (ID1, ID2, ID3) and six SERIES columns
within each ID column with two boxplots in each ID column (C10, C2) (C15,
C4), (C20, C8). I was aiming for a grid with ID column
> Now I think I understand want you want. I'm affraid that won't be easy
> because you're trying to mix continuous variables with categorical ones
> on the same scale. A density plot has two continuous scales: VALUE and
> it's density. The boxplot has a continuous scale (VALUE) and the other
>
lto:[EMAIL PROTECTED]
Namens Chris Friedl
Verzonden: woensdag 27 februari 2008 15:08
Aan: r-help@r-project.org
Onderwerp: Re: [R] ggplot2 boxplot confusion
Thanks Thierry.
But this leads to a couple more questions if you don't mind.
1. I tried to extend your example to a grid by the facet_gri
Thanks Thierry.
But this leads to a couple more questions if you don't mind.
1. I tried to extend your example to a grid by the facet_grid command with
the aim of getting a boxplot of VALUE according to two factors SERIES and
ID. However whatever syntax I use give me an error. For example:
ggpl
m W. Watt
A statistical analysis, properly conducted, is a delicate dissection of
uncertainties, a surgery of suppositions. ~M.J.Moroney
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Namens Chris Friedl
Verzonden: woensdag 27 februari 2008 5:58
Aan: r-help@r-project.org
Ultimately my aim is to get a plot of density faceted by 2 factors with a
horizontal boxplot overlaid on each density plot in the grid to indicate
summary stats. So I've been experimenting with creating boxplots and density
plots. Here's some representative data.
series = c('C2','C4','C8','C10','
12 matches
Mail list logo