I have a dataset like this:
| Region | Year | Month | rate | residuals |
|---|---|---|---|---|
| 1 | 2010 | 1 | 0.5 | 0.5 |
| 2 | 2010 | 1 | 4.0 | 0.5 |
This dataset continues it has 15'000 observations.
I created a scatter plot :
plot(df$full.residuals, df$rate, main="Scatterplot",
xlab="rate", ylab="Residuals")
Now I can't do it further to create cluster in the plot? Does anyone know how to create clusters in the plot?
