> I had the same problem and found a solution in some forums. Try this:
>
> p<-ggplot(data, aes(x,y,fill)) + geom_point() + scale_x_continuous("your
> xlabel") + scale_y_continuous("your ylabel")
The new (more ggplot-like way) is to do:
ggplot(data, aes(x,y,fill)) + ... + opts(title = "my title")
Thierry and Ingo,
Thanks for these smart responses. It works fine.
Guillaume
2008/3/5, Ingo Michaelis <[EMAIL PROTECTED]>:
>
>
>
> ONKELINX, Thierry inbo.be> writes:
>
> >
> > Guillaume,
> >
> > You'll have to add the appropriate scales.
> >
> > ggplot(data, aes(x,y,fill)) + geom_point() + scal
ONKELINX, Thierry inbo.be> writes:
>
> Guillaume,
>
> You'll have to add the appropriate scales.
>
> ggplot(data, aes(x,y,fill)) + geom_point() + scale_x_continuous("your
> xlabel") + scale_y_continuous("your ylabel")
>
> I suppose you can add a main title in a similar way, but I haven't f
dissection of
uncertainties, a surgery of suppositions. ~M.J.Moroney
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Namens guillaume chaumet
Verzonden: woensdag 5 maart 2008 9:45
Aan: r-help@r-project.org
Onderwerp: Re: [R] main title x title and y title with gg
AIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Namens guillaume chaumet
> Verzonden: woensdag 5 maart 2008 8:51
> Aan: r-help@r-project.org
> Onderwerp: [R] main title x title and y title with ggplot2
>
>
> Hi R people,
> I'm a R newbie and I'm trying
-project.org
Onderwerp: [R] main title x title and y title with ggplot2
Hi R people,
I'm a R newbie and I'm trying to put main title, x title and y title in
my
graph with no success.
Any idea?
I'm sorry for this newbie question..
Guillaume
[[alternative HTML
Hi R people,
I'm a R newbie and I'm trying to put main title, x title and y title in my
graph with no success.
Any idea?
I'm sorry for this newbie question..
Guillaume
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
ht
7 matches
Mail list logo