Footsteps on my way !
perl/linux/测序分析

ggplot2报错

  1. Error: could not find function “opts”
    > library(ggplot2)
    > facebookData <- read.delim("FacebookNarcissism.dat",  header = TRUE)
    > 
    > graph <- ggplot(facebookData, aes(NPQC_R_Total, Rating))
    > graph + geom_point() + opts(title = "geom_point()")
    Error: could not find function "opts"

    解决办法:

    opts() has been deprecated a long time ago. Use theme() options. For setting a title, use ggtitle()

    参考:
    https://groups.google.com/forum/#!topic/ggplot2/CaWDdYyBjXw

尊重他人劳动成果,转载请注明出处:Bluesky's blog » ggplot2报错

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址