2
How to play the chart below using ggplot2?
Data and ggplot2 code I’m trying
ano<-c("2009", "2011", "2013","2014","2016","2017","2018","2019")
mean.est<-c(0.975, 1.204, 1.504, 1.741, 1.77,2.166,2.378,2.564)
lower<-c(0.041, 0.771, 1.114, 1.374, 1.419,1.804,1.993, 2.12)
upper<-c(1.876, 1.669, 1.867, 2.081, 2.162, 2.499,2.745, 3.021)
mean.obs<-c(2.659, 1.155, 1.56, 1.848, 1.56,2.253,2.407,2.541)
graf<-data.frame(ano,mean.est, lower, upper, mean.obs)
ggplot(graf,aes(x=ano, y=mean.est))+
geom_pointrange(fill="black", size= .4, ymin=graf$lower, ymax=graf$upper)+
ylim(0, 3)+
ylab("Número de abates (log)")+
xlab("Ano")