ggplot(mpg, aes(x=corn$corona, y=corn$apple)) +
- geom_point(aes("red" = corn$apple)) +
- geom_smooth(se=T, method="lm")
Error: Aesthetics must be either length 1 or the same as the data (234): red, x and y
Runrlang::last_error()
to see where the error occurred.
In addition: Warning message:
Ignoring unknown aesthetics: red
labs(x = "Covid Cases"
-
y = "Apple stock value $"
Error: unexpected symbol in:
" labs(x = "Covid Cases"
y"
title = "Apple stock increases along with covid patient number")
Error: unexpected ')' in " title = "Apple stock increases along with covid patient number")"
I have no idea what to do in this situation.. (first time trying to make R graph with ggplot)