formatter argument in scale_continuous throwing errors in R 2.15

前端 未结 1 1948
旧巷少年郎
旧巷少年郎 2020-12-09 11:14

Since upgrading to R 2.15, the formatter argument seems to be throwing errors. This was an argument that I\'ve been using everyday for 2 years, so a huge bummer.

R v

相关标签:
1条回答
  • 2020-12-09 11:52

    The syntax has changed with version 0.9.0. See the transition guide here: https://github.com/downloads/hadley/ggplot2/guide-col.pdf

    library(ggplot2)
    library(scales)
    x <- 1:100
    y <- 1/x
    p <- qplot(x,y) + scale_y_continuous(labels  = percent)
    
    0 讨论(0)
提交回复
热议问题