I'm having issues generating my bar chart and am not sure what the issue might be, any help on this would be greatly appreciated. Please see code and myData below:
After you run select(19:20), there are two columns in the data frame. You rename those to be Median and Heart. Your ggplot code refers to a column named Sample, which does not exist. Which column in the original data should be named Sample?
ERROR CODE
Error in fortify():
! data must be a <data.frame>, or an object coercible by fortify(), not an S3 object with class . Did you accidentally pass aes() to the data argument?
Run rlang::last_error() to see where the error occurred.