- 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报错