Description Usage Arguments Value
For all indicators or a selection of indicators two plots are returned. The first plot is a scatter plot of estimates to compare and the second is a line plot with these estimates.
1 | compare_plot(object, indicator, ...)
|
indicator |
optional character vector that selects which indicators
shall be returned: (i) all calculated indicators ("all");
(ii) each indicator name: "Mean", "Quantile_10", "Quantile_25", "Median",
"Quantile_75", "Quantile_90", "Head_Count",
"Poverty_Gap", "Gini", "Quintile_Share" or the function name/s of
"custom_indicator/s"; (iii) groups of indicators: "Quantiles", "Poverty",
"Inequality" or "Custom".If two of these groups are selected, only the first
one is returned. Defaults to "all". Note, additional custom indicators can be
defined as argument for model-based approaches (see also |
direct |
optional, an object of type "emdi","direct", representing point and MSE estimates. |
model |
an object of type "emdi","model", representing point and MSE estimates. |
A scatter plot and a line plot comparing direct and model-based
estimators for each selected indicator obtained by ggplot
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.