Axis tick label format and rotation
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