Hello!
I just started using "R", so today I came across an issue that is could not find function "error. bar" notification is showing when I try to create an HTML markdown file, however when I tried to run the code chunk, It was working fine but even in the markdown script as well.
here is the code
Nhat_Count<-barplot(as.matrix(Nhat), main="least_count",
ylab = "Numbers",ylim = c(0,450),las=3,
cex.names=0.5,cex.lab = 1.5, cex.main = 1.4,
beside=TRUE, col=c("grey","orange"))
text(Nhat_Count,as.matrix(Nhat)+100,
labels=as.character(as.matrix(Nhat)))
legend("topleft", c("2018","2020"),
cex=1.3, bty="n", fill=c("grey","orange"))
EB_1<-matrix(c(W1$SD_1,W1$SD_2,W1$SD_3,W1$SD_4,W1$SD_5,W1$SD_6,W1$SD_7,W1$SD_8),2,8,byrow=TRUE)*1.96/sqrt(16)
error.bar(Nhat_Count,as.matrix(Nhat),EB_1)
please help