inst/examples/R/data/cluster/dbscan_cluster/example_dbscan.R

library("fpc")
cl <- dbscan(faithful, 0.05, scale=T)
col <- c('grey', rainbow(max(cl$cluster)))
plot(faithful, pch=19, col=col[1+cl$cluster])
#
cl <- dbscan(faithful, 0.1, scale=T)
col <- c('grey', rainbow(max(cl$cluster)))
plot(faithful, pch=19, col=col[1+cl$cluster])
#
cl <- dbscan(faithful, 0.15, scale=T)
col <- c('grey', rainbow(max(cl$cluster)))
plot(faithful, pch=19, col=col[1+cl$cluster])
sigbertklinke/shinyExample documentation built on May 26, 2019, 4:32 a.m.