Error: Can't subset columns that don't exist PLEASE HELP!

See the FAQ: How to do a minimal reproducible example reprex for beginners.

As far as I can tell from the screenshot, you should assign the output to "result", rather than piping on to ggplot, usecolnames(result) to confirm the existence of all variables passed to ggplot on line 27.