Skip to content
Prev 138550 / 398506 Next

main title x title and y title with ggplot2

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 op 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 op r-project.org [mailto:r-help-bounces op r-project.org]
Namens guillaume chaumet
Verzonden: woensdag 5 maart 2008 9:45
Aan: r-help op 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 :
Where did you your xlab and ylab when using ggplot2 like that?

Guillaume

2008/3/5, ONKELINX, Thierry <Thierry.ONKELINX op inbo.be>:
------------------------------------------------------------------------
of
[mailto:r-help-bounces op r-project.org]
in
______________________________________________
R-help op 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.