Many thanks for you help on this Dennis.
Liam
On Thu, Feb 11, 2010 at 6:02 AM, Dennis Murphy wrote:
> Hi:
>
> This is closer, but it is still not what you want; it does, however, show
> what
> geom_area is doing when it renders the plot, as can be seen by the colors.
>
> data.set <- data.frame
Hi:
This is closer, but it is still not what you want; it does, however, show
what
geom_area is doing when it renders the plot, as can be seen by the colors.
data.set <- data.frame(
Time = c(rep(1, 4),rep(2, 4), rep(3, 4), rep(4, 4)),
Type = rep(c('a', 'b', 'c', 'd'), 4),
Value = c(10, 12,
Hi Hadley,
Thank you for taking the time to help me with this - I've constructed
the following example to illustrate my problem:
require(ggplot2)
data.set <- data.frame(
Time = c(rep(1, 4),rep(2, 4), rep(3, 4), rep(4, 4)),
Type = rep(c('a', 'b', 'c', 'd'), 4),
Value = c(10, 12, 14, 16, 14, 14
Hi Liam,
Yes, that's what that code should do. Could you please send a small
reproducible example?
Hadley
On Tue, Feb 9, 2010 at 4:21 PM, Liam Blanckenberg
wrote:
> Hadley,
>
> Thanks for the pointing that error out to me. Unfortunately, revising
> my code to:
>
> p <- ggplot2(~, aes(x = ~, y
Hadley,
Thanks for the pointing that error out to me. Unfortunately, revising
my code to:
p <- ggplot2(~, aes(x = ~, y = ~, colour = Type)) +
geom_line(aes(colour = Type), position = 'stack')
still does not generate what I'm after. I'm essentially after a line
plot where each 'Type' ('series' in
Hi Liam,
Your syntax is a little off. You want:
p <- ggplot2(~, aes(x = ~, y = ~, colour = Type)) +
geom_area(aes(fill = Type), position = 'stack')
Position isn't an aesthetic.
Hadley
On Sun, Feb 7, 2010 at 10:40 PM, Liam Blanckenberg
wrote:
> Hi all,
>
> I have been hunting around for hou
On 02/08/2010 03:40 PM, Liam Blanckenberg wrote:
Hi all,
I have been hunting around for hours trying to figure out how to
generate a stacked line chart using ggplot2. This type of chart can be
generated in excel 2007 by selecting: Chart type> Line> Stacked
line. I can generate a stacked area c
Hi,
On Sun, Feb 7, 2010 at 11:40 PM, Liam Blanckenberg
wrote:
> Hi all,
>
> I have been hunting around for hours trying to figure out how to
> generate a stacked line chart using ggplot2. This type of chart can be
> generated in excel 2007 by selecting: Chart type > Line > Stacked
> line. I can g
Hi all,
I have been hunting around for hours trying to figure out how to
generate a stacked line chart using ggplot2. This type of chart can be
generated in excel 2007 by selecting: Chart type > Line > Stacked
line. I can generate a stacked area chart using the following code:
p <- ggplot2(~,
9 matches
Mail list logo