hello there
really need help on something as i've been working on this for a while and still cannot figure out what is going on with my graph.
i've been trying to add error bars to my graph, but everytime i run the code it says
Error in geom_errorbar():
! Problem while computing aesthetics.
Error occurred in the 2nd layer.
Caused by error:
! object 'log_cfu' not found
Your call to ggplot lists log_cfu as the y aesthetic. Check the rest of your code and make sure that log_cfu is assigned a value prior to the plot call.
Is log_cfu in both allcfus and summary? If the geom_error layer changes the data to summary but inherits y = log_cfu, from the initial aes, you might need that variable in summary too.