A tutorial on specteral clustering in R