When using a clustering function like kmeans or dbscan::dbscan, the result data frame will have $cluster and $centers attributes. These attributes are currently missing from the result and should be added, such that the same functions can be used for analyzing and plotting the clustering result.