We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The first two code lines in Lesson 27:
plot(mlb$Age,mlb$Weight,col=mlb$PosCategory)
and
with(mlb,plot(Age,Weight,col=PosCategory,cex=0.6))
are not compatible with current version of R (4.2.1).
The error when using these two lines:
Error in plot.xy(xy, type, ...) : invalid color name 'Catcher'
Suggested fixes based on Stack Overflow (link: https://stackoverflow.com/questions/66854539/r-does-not-assign-colors-to-plot-function):
plot(mlb$Age,mlb$Weight,col=as.factor(mlb$PosCategory))
with(mlb,plot(Age,Weight,col=as.factor(PosCategory),cex=0.6))
However, I am not sure if these suggested fixes are compatible with earlier versions of R.
The text was updated successfully, but these errors were encountered:
Thanks. Was not a version issue. Anyway, I rewrote Lessons 29 and 30 completely. Thanks again.
Sorry, something went wrong.
No branches or pull requests
The first two code lines in Lesson 27:
and
are not compatible with current version of R (4.2.1).
The error when using these two lines:
Suggested fixes based on Stack Overflow
(link: https://stackoverflow.com/questions/66854539/r-does-not-assign-colors-to-plot-function):
and
However, I am not sure if these suggested fixes are compatible with earlier versions of R.
The text was updated successfully, but these errors were encountered: