Hello there. I got this error while doing a tutorial on Youtube by Freecodecamp. I'm an absolute noob beginner; so, please bare with me. I've heard good things about the R community; so, I naturally turned to you.
My error pretty much is that for some reason R will not plot the data (although I'm following the video step-by-step). It's called "Error in plot.window(...) : invalid 'xlim' value." I have searched online for the fix, but the answers are meant for advanced topics, whereas this is a simple one (probably). This is the code:
plot(iris$Petal.Length, iris$Petal.Width,
col <- "#cc0000", # Hex code for datalab.cc red
pch <- 19, # Use solid circles for points
main <- "Iris: Petal Length vs. Petal Width",
xlab <- "Petal Length",
ylab <- "Petal Width")
Error in plot.window(...) : invalid 'xlim' value
Additionally, I also get other errors such as "unexpected ',' in..." It's worth noting that the video goes through this line smoothly; it happens ~25:40.
Thank you in advance; any help is appreciated.