asadoughi / stat-learning

Notes and exercise attempts for "An Introduction to Statistical Learning"
http://asadoughi.github.io/stat-learning
2.12k stars 1.62k forks source link

Suggestion for Chapter 2 question 8,c,iii #111

Closed ytwlu181 closed 3 years ago

ytwlu181 commented 4 years ago

With R version 4.0.2, it seems I must perform a factor() to categorize the "char" column of "Private". Thus, the solution would become plot(as.factor(college$Private), college$Outstate)