Hi everyone, I have an error in make errorbar in a bar graph. Could anyone help me please?
Here is my code:
p <- ggplot(data1, aes(x=disease, y=newsbsn)) +
geom_col(fill= "blue", colour="black") +
geom_errorbar(aes(ymin=NULL, ymax=newsbsn+se), width=.2)
and it showed
Error: Aesthetics must be either length 1 or the same as the data (107): ymax
rlang::last_error() to see where the error occurred.
In addition: Warning message:
In newsbsn + see : longer object length is not a multiple of shorter object length