我正在尝试使用El Capitan使用此命令在我的Macbook上设置自制程序:line 21: /usr/local/Cellar/rbenv/0.4.0/libexec/rbenv: No such file or directory
。但我继续收到此错误消息:require('ggplot2')
require('dplyr')
df3 <- data.frame(name=c(rep("Alice",10),rep("Bob",10),rep("Eve",10)),value=c(seq(1,10), seq(4,13), seq(5,14)), time=rep(seq(1,10),3))
df3$value[c(3,4,15,16,17,22,23,24,25)]<- NA
NAdf<-df3 %>%
group_by(name) %>%
summarise(ycoor=mean(value, na.rm=TRUE),
xcoor=mean(time, na.rm=TRUE),
num_NA=sum(is.na(value)))
ggplot(data=df3, aes(time, value)) +
geom_line() +
geom_point() +
geom_text(data=NAdf, aes(x=xcoor, y=ycoor, label=paste(num_NA,"for",name))) +
facet_wrap(~ name, nrow=1)
。我已尝试按照this tutorial中列出的步骤进行操作,但没有任何区别。还有其他人遇到过这个问题吗?