> Is there any way to specify a range to scale_size()? There is an option > called "breaks" in scale_size_identity() that does what I want. Is there > something similar for scale_size()?
Not in the released version, but there is in the development version - all scales now take a limits argument which lets you set the limits independently of the data. I'm hoping to release the next version in the next couple of months. Until then, you could do something like: dummy <- data.frame(Score = range(dataset$Score)) qplot(...) + geom_point(aes(x=1, y=1), data=dummy, colour = NA) This adds a layer with two invisible points that force the size scale to expand to the maximum extend needed. Hadley > > Thanks. > > -Raj. > -- > View this message in context: > http://www.nabble.com/ggplot-scale_size---is-there-any-way-to-specify-breaks--tp19148944p19148944.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > 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. > -- 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.