So continuing with the beautiful plots in ISLR, here is a
discussion I had on SO today about hot to plot decision boundaries or arbitrary
non-linear curves. The discussion on SE that was linked to in
the answer was even more useful. Plus, I picked up two new functions today:
curve
and contour
.