Description Usage Arguments Details Value See Also
utility function: creates a ggplot histogram showing side-by-side bars to compare two sets of data for the same bins. Based on data.table containing formatted histogram data.
1 | ggcompare(datmerge, binarg, insetx = 0.4, insety = 0.8)
|
datmerge |
data.table |
binarg |
labels for inner bin limits, see bin_dt |
insetx |
(numeric) proportion of main plot width to occupy with inset (between 0 and 1) |
insety |
(numeric) proportion of main plot height to occupy with inset (between 0 and 1) |
datmerge
data.table must contain all the columns
returned by formathistab.
histogram ggplot object
used in compare_fr
, compare_us
,
and compare_au
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.