This function creates a plot with posterior distribution of fraud in a given election unit (ballot box, pooling place, etc)
1 2 3 4 |
data |
either the data set used to estimate fraud or the output of the function ef_get_local_fraud |
samples |
eigher |
model |
either |
row |
an integer with the row number of data to plot |
election.unit |
a string with the name of the column that contains a label that identifies the election unit. Default |
title |
a string with the title of the plot. Default |
subtitle |
a string with the subtitle of the plot. Default |
plot.mean |
boolean, if |
legend.position |
a string with the position of the legend when posterior mean is displayed. Accepts |
sim_data |
the output of the function ef_simulateData. It is used only if the fraud was estimated using simulated data. If provided, the plot also display the true fraud value. Default |
by.types |
boolean, if |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.