Hi: I'm not sure what you mean by line weight - I interpreted it to mean size, but you already have have it in your geom_line() call. If you want thicker lines, increase size. As for the others, try this:
ggplot(ddata, aes(x = area, y = disc, colour = year)) + geom_point() + geom_line(aes(group = year), size = 1) + scale_y_continuous(name='Percent Well Prepared', limits=c(0, 100)) + scale_colour_discrete('Year') + xlab('') + opts(axis.text.x = theme_text(size = 16)) + opts(axis.text.y = theme_text(size = 16)) + opts(legend.title = theme_text(size = 12, hjust = 0)) + opts(legend.text = theme_text(size = 12)) Brandon Hurr has taken the time to organize a nice wiki to illustrate how to use different sets of opts(): https://github.com/hadley/ggplot2/wiki/+opts%28%29-List Click on the 'Usage Examples' link under the subsection title to get to the good stuff. Thank you for providing a data frame in dput() form - it simplified matters greatly! HTH, Dennis On Thu, Jan 6, 2011 at 11:20 AM, Art Burke <art.bu...@educationnorthwest.org > wrote: > Given the data structure below and the call to ggplot2, how can I increase > the size of the axis scale points, the line weight, and the size of the > legend? > > ddata <-structure(list(year = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, > 2L, 2L, 2L, 2L, 2L, 2L, 2L), .Label = c("2003", "2007"), class = > "factor"), > area = structure(c(7L, 6L, 1L, 2L, 3L, 4L, 5L, 7L, 6L, 1L, > 2L, 3L, 4L, 5L), .Label = c("AK", "ID", "MT", "OR", "WA", > "NW", "US"), class = "factor"), disc = c(55.8, 62.6, 54.3, > 56.9, 52.8, 66.7, 64.8, 59.5, 64.8, 65.8, 61.4, 60.6, 66.3, > 65.5)), .Names = c("year", "area", "disc"), class = "data.frame", > row.names = c(NA, > 14L)) > > ggplot(ddata, aes(x = area, y = disc, colour = year)) + > geom_point() + geom_line(aes(group = year), size = 1) + > scale_y_continuous(name='Percent Well Prepared', limits=c(0, 100)) + > scale_colour_discrete('Year') + xlab('') > > Thanks! > Art > _______________________________________ > Art Burke > Associate > Education Northwest > 101 SW Main St, Suite 500 > Portland OR 97204-3213 > art.bu...@educationnorthwest.org > Phone: 503-275-9592 > http://educationnorthwest.org > > Need help finding evidence-based answers to questions about education > practices, policies, or programs? Take advantage of our free reference desk > service offered by our REL Northwest project. Contact Jennifer Klump at > http://askarel.org/northwest for prompt, authoritative, and customized > answers to your questions. > > > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. > [[alternative HTML version deleted]] ______________________________________________ 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.