ensdag 31 december 2008 18:08
Aan: hadley wickham
CC: r-help@r-project.org
Onderwerp: Re: [R] ggplot: adding layer using different data,groups and
also controlling appearance
foo <- data.frame ( x = 1:4, y = 4:1 , membership = c( "A", "A", "B",
"B" ) )
bar <
foo <- data.frame ( x = 1:4, y = 4:1 , membership = c( "A", "A", "B", "B" ) )
bar <- data.frame ( x = 1:4 + 1 , y = 4:1 + 1, membership = rep ( "C", 4 ) )
foo.gg <- ggplot ( mapping = aes ( x = x, y = y , colour = membership ) )
foo.gg <- foo.gg + geom_point(data = foo)
booboo.gg <- foo.gg + geo
Hi Juliet,
Can you please provide a reproducible example of the problem?
Thanks,
Hadley
On Wed, Dec 31, 2008 at 10:14 AM, Juliet Hannah wrote:
> This example works now, but does the legend need to be updated
> manually? After we specify the color change, it does not appear in the
> legend. Tha
This example works now, but does the legend need to be updated
manually? After we specify the color change, it does not appear in the
legend. Thanks!
On Wed, Sep 24, 2008 at 8:03 PM, hadley wickham wrote:
> On Wed, Sep 24, 2008 at 7:57 PM, wrote:
>>
>>
>> I have a more complicated function I am
On Wed, Sep 24, 2008 at 7:57 PM, <[EMAIL PROTECTED]> wrote:
>
>
> I have a more complicated function I am trying to write, but I run in to a
> problem when I want to
> add something to the plot from more than one data set while simultaneously
> controlling the
> appearance of the additional laye
I have a more complicated function I am trying to write, but I run in to a
problem when I want to
add something to the plot from more than one data set while simultaneously
controlling the
appearance of the additional layer.
# Toy data:
foo <- data.frame ( x = 1:4, y = 4:1 , membership = c(
6 matches
Mail list logo