View source: R/heterogeneityTutorial.R
het.hist | R Documentation |
Plot a histogram of contact rates, with annotations for population and sample means.
het.hist(mxdst, beta.mean, binwidth = 0.1, ...)
mxdst |
A numeric vector of contact rates, as produced by
|
beta.mean |
The mean contact rate, as passed to |
binwidth |
The width of the bins. Can be specified as a numeric value
or as a function that calculates width from unscaled x. Here, "unscaled x"
refers to the original x values in the data, before application of any
scale transformation. When specifying a function along with a grouping
structure, the function will be called once per group.
The default is to use the number of bins in The bin width of a date variable is the number of days in each time; the bin width of a time variable is the number of seconds. |
... |
Arguments passed on to
|
A ggplot
object
Other heterogeneity:
het.population()
,
het.run()
,
sample_pair()
,
sample_until()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.