>  xydf <- data.frame(x = 1:5, y = 11:15)
>  plt <- ggplot(data = xydf, aes(x = x,y = y)) + geom_point()
>  attributes(plt)
>
>  Now we can change the title:
>
>  plt$title <- "My Title"
>  plt

This is rather poorly documented, but the preferred way of setting the
title is now:

p + opts(title = "My Title")

All options should be documented under ?opts (but aren't, unfortunately).

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

______________________________________________
R-help@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.

Reply via email to