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

From: <>
Date: Wed, 05 Mar 2008 07:18:13 -0600

> 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")



______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 05 Mar 2008 - 13:25:07 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 - 13:30:18 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive