Skip to content
Back to formatted view

Raw Message

Message-ID: <f8e6ff050803050518u3865fab1i2e95b4b79dc118f0@mail.gmail.com>
Date: 2008-03-05T13:18:13Z
From: Hadley Wickham
Subject: main title x title and y title with ggplot2
In-Reply-To: <loom.20080305T095703-498@post.gmane.org>

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

Hadley

--
http://had.co.nz/