Re: [R] main title x title and y title with ggplot2

From: ONKELINX, Thierry <Thierry.ONKELINX_at_inbo.be>
Date: Wed, 05 Mar 2008 09:55:28 +0100

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 found that yet. But I shure that Hadley will answer this.

Thierry




ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest
Cel biometrie, methodologie en kwaliteitszorg / Section biometrics, methodology and quality assurance
Gaverstraat 4
9500 Geraardsbergen
Belgium
tel. + 32 54/436 185
Thierry.Onkelinx_at_inbo.be
www.inbo.be

Do not put your faith in what statistics say until you have carefully considered what they do not say. ~William W. Watt A statistical analysis, properly conducted, is a delicate dissection of uncertainties, a surgery of suppositions. ~M.J.Moroney

-----Oorspronkelijk bericht-----
Van: r-help-bounces_at_r-project.org [mailto:r-help-bounces_at_r-project.org] Namens guillaume chaumet
Verzonden: woensdag 5 maart 2008 9:45
Aan: r-help_at_r-project.org
Onderwerp: Re: [R] main title x title and y title with ggplot2

Thierry
First thank you for the celerity of your response. Second I use ggplot2 like this :
>ggplot(data, aes(x,y,fill)) + geom_point() + etc.
Where did you your xlab and ylab when using ggplot2 like that?

Guillaume

2008/3/5, ONKELINX, Thierry <Thierry.ONKELINX_at_inbo.be>:
>
> Guillaume,
>
> Have a look at the ggplot book on p. 29
> (http://had.co.nz/ggplot2/book.pdf).
>
> HTH,
>
> Thierry
>
>



> ----
> ir. Thierry Onkelinx
> Instituut voor natuur- en bosonderzoek / Research Institute for Nature
> and Forest
> Cel biometrie, methodologie en kwaliteitszorg / Section biometrics,
> methodology and quality assurance
> Gaverstraat 4
> 9500 Geraardsbergen
> Belgium
> tel. + 32 54/436 185
> Thierry.Onkelinx_at_inbo.be
> www.inbo.be
>
> Do not put your faith in what statistics say until you have carefully
> considered what they do not say. ~William W. Watt
> A statistical analysis, properly conducted, is a delicate dissection
of
> uncertainties, a surgery of suppositions. ~M.J.Moroney
>
> -----Oorspronkelijk bericht-----
> Van: r-help-bounces_at_r-project.org
[mailto:r-help-bounces_at_r-project.org]
> Namens guillaume chaumet
> Verzonden: woensdag 5 maart 2008 8:51
> Aan: r-help_at_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 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_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 05 Mar 2008 - 09:03:53 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 05 Mar 2008 - 10:30:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive