How to Fix the Error: Mapping Must be Created by aes() in GGPLOT2
“Error: mapping must be created by aes()” is an error you would eventually run into if you frequently use GGPLOT2 to create graphs in R. The last time I ran into this error was when I was creating profile plots using geom_line(). I succeeded to recreate the error using the R codes below. Visit this…