小编jle*_*tre的帖子

R 2.15中scale_continuous抛出错误的formatter参数

自升级到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)

r ggplot2

14
推荐指数
1
解决办法
5460
查看次数

标签 统计

ggplot2 ×1

r ×1