View source: R/SPARRAfairness_functions.R
drawprop | R Documentation |
Illustrates a proportion as a set of people who are blue rather than red.
drawprop(prop, ci, nxy = 10, col1 = "maroon", col2 = "lightblue", ...)
prop |
the proportion to illustrate |
ci |
half the 95% CI width of the proportion. |
nxy |
illustrate on an n x n grid |
col1 |
colour to put the 'in' proportion |
col2 |
the other colour |
... |
passed to 'plot' |
Why anyone would want to think about a proportion this way is beyond the understanding of the authors, but the people have spoken.
No return value, draws a figure
# See vignette
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.