Description Usage Arguments Value Examples
Natural Breaks group data whose boundaries are set where there are relatively big differences.
1 | natural_breaks(k, data)
|
k |
A numeric value indicates how many breaks |
data |
An input data |
A array contains values of computed breaks
1 2 3 4 5 | guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- geoda_open(guerry_path)
guerry_df <- as.data.frame(guerry) # use as data.frame
crm_prs <- guerry_df['Crm_prs'][,1] # get values of variable "crm_prs"
natural_breaks(k=5, data=crm_prs)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.