Message-ID: <f8e6ff050809071044w5c3fb24ag396db7c80f6371c9@mail.gmail.com>
Date: 2008-09-07T17:44:16Z
From: Hadley Wickham
Subject: Axis tick label format and rotation
In-Reply-To: <BAY111-W34B9C671EAFDF2344B1CE5885B0@phx.gbl>
Hi Kurt,
> Please tell me how to format data in a data frame so when currency amount is displayed in a chart the axis tick labels contain leading $ signs.
The easiest way is add a custom scale:
vals <- seq(0, 100, by = 10)
qplot(...) + scale_x_continuous(breaks = vals, labels = paste("$",
vals, sep = ""))
> Please also tell me if it is possible to rotate x axis labels using ggplot2.
Not easily, but there will be in the next version.
Hadley
--
http://had.co.nz/