ggcompare: Comparison ggplot histogram

Description Usage Arguments Details Value See Also

Description

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.

Usage

1
ggcompare(datmerge, binarg, insetx = 0.4, insety = 0.8)

Arguments

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)

Details

datmerge data.table must contain all the columns returned by formathistab.

Value

histogram ggplot object

See Also

used in compare_fr, compare_us, and compare_au


NaiaraLopezRojo/globalIRmap documentation built on Dec. 17, 2021, 5:19 a.m.