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

From: guillaume chaumet <guillaumechaumet_at_gmail.com>
Date: Wed, 05 Mar 2008 11:26:39 +0100

Thierry and Ingo,

Thanks for these smart responses. It works fine.

Guillaume

2008/3/5, Ingo Michaelis <michaeli_at_gfz-potsdam.de>:
>
>
>
> ONKELINX, Thierry <Thierry.ONKELINX <at> 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 found
> > that yet. But I shure that Hadley will answer this.
> >
> > Thierry
>
>
> Guillaume,
>
> 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")
>
>
> p$title<-"your title"
>
> print(p)
>
>
> Ingo.
>
>
> ______________________________________________
> 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. Received on Wed 05 Mar 2008 - 10:30:43 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 - 11: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