好像是起到修饰图形的作用,详细的用法是
scale_y_continuous(name=NULL, limits=NULL, breaks=NULL, labels=NULL, trans=NULL, expand=c(0.05, 0), minor_breaks=NULL, formatter="scientific", ...)
name: name of scale to appear in legend or on axis. Maybe be an expression: see ?plotmath
limits: numeric vector of length 2, giving the extent of the scale
breaks: numeric vector indicating where breaks should lie
labels: character vector giving labels associated with breaks
trans: a transformer to use
expand: numeric vector of length 2, giving multiplicative and additive expansion factors
minor_breaks: NULL
formatter: NULL
...: ignored
比如
(m <-
qplot(rating, votes, data=subset(movies, votes > 1000), na.rm = T))
m + scale_y_continuous(limits=c(0, 5000))