Some R code used to compare simple clustering and simple linear regression for 2-dimensional data, for cases that are obviously well suited for clustering and linear regression.