Error Codes when using ggplot in R (And how to fix them)