natural_breaks | R Documentation |
Natural Breaks group data whose boundaries are set where there are relatively big differences.
natural_breaks(k, df)
k |
A numeric value indicates how many breaks |
df |
A data frame with selected variable. E.g. guerry["Crm_prs"] |
A vector of numeric values of computed breaks
library(sf)
guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- st_read(guerry_path)
natural_breaks(k=5, guerry['Crm_prs'])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.