自升级到R 2.15以来,formatter参数似乎抛出了错误.这是我每天都在使用2年的争论,所以这是一个巨大的失败.
R版本2.15.0(2012-03-30)
ggplot2版本0.9.0
> library(ggplot2)
> x <- 1:100
> y <- 1/x
> p <- qplot(x,y)
> p + scale_y_continuous(formatter = "percent")
Error in continuous_scale(c("y", "ymin", "ymax", "yend", "yintercept", :
unused argument(s) (formatter = "percent")
Run Code Online (Sandbox Code Playgroud)