| plot_dist | R Documentation |
Plots indicator distributions using box plots, dot plots, violin plots, violin-dot plots, and histograms. Supports plotting multiple indicators by calling aggregation groups.
plot_dist( coin, dset, iCodes, ..., type = "Box", normalise = FALSE, global_specs = NULL )
coin |
The coin object, or a data frame of indicator data |
dset |
The name of the data set to apply the function to, which should be accessible in |
iCodes |
Indicator code(s) to plot. See details. |
... |
Further arguments passed to |
type |
The type of plot. Currently supported |
normalise |
Logical: if |
global_specs |
Specifications for normalising data if |
This function uses ggplot2 to generate plots, so the plot can be further manipulated using ggplot2 commands.
See vignette("visualisation) for more details on plotting.
This function replaces the now-defunct plotIndDist() from COINr < v1.0.
A ggplot2 plot object.
# build example coin coin <- build_example_coin(up_to = "new_coin") # plot all indicators in P2P group plot_dist(coin, dset = "Raw", iCodes = "P2P", Level = 1, type = "Violindot")