Descriptive (Change) statistics
This function perform two tasks:
(i) it generate the descriptive and change statistics
of groups, particularly suited for the outputs form
the akclustr
function, and
(ii) generates the plots of the groups (performances).
print_akstats(ak_object, k = 3, reference = 1, n_quant = 4, show_plots = FALSE)
ak_object |
An output of |
k |
[integer] |
reference |
[numeric] Specifying the reference line from
which the direction of each group is measured. Options are:
|
n_quant |
[numeric] Number of equal intervals (quantiles)
to create between the reference line |
show_plots |
[TRUE or FALSE] Provides the trajectory group
plot. Please, see |
Generates the plot of trajectory groupings.
Given an ak_object
class (from
the akclustr
function), this function show the
plots of cluster groups. The plot component draws from
plot_akstats
function.
A plot showing group membership or sizes (proportion) and statistics.
1
. Adepeju, M. et al. (2021). Anchored k-medoids:
A novel adaptation of k-medoids further refined to measure
inequality in the exposure to crime across micro places,
doi: 10.1007/s42001-021-00103-1.
2
. Wickham H. (2016). Elegant graphics for
Data Analysis. Spring-Verlag New York (2016).
data(traj) trajectry <- data_imputation(traj, id_field = TRUE, method = 1, replace_with = 1, fill_zeros = FALSE) print(trajectry$CompleteData) trajectry <- props(trajectry$CompleteData, id_field = TRUE) aksolution <- akclustr(trajectry, id_field = TRUE, method = "linear", k = c(3,5), crit='Calinski_Harabasz') print_akstats(aksolution, k = 4, show_plots=FALSE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.