Quantile Breaks
Quantile breaks data into groups that each have the same number of observations
quantile_breaks(k, df)
k
: A numeric value indicates how many breaksdf
: 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) quantile_breaks(k=5, guerry['Crm_prs'])
Useful links