Description Usage Arguments Examples
plot a density function over a histogram
1 2 3 |
x |
the data |
dfunc |
The name of a density function (ie, dnorm, dt, etc) |
args |
list of the additional argument of the function, ie, list(mu = 0, sigma = 1) |
bins |
defaults to 20 |
n |
the number of x values to be evaluated in the superimposed density curve. Defaults to 1500. |
type |
defaults to "irregular" using the binning method described in plotPost. Otherwise, "equal". |
xname |
character; argument of the function in func, the name of the x axis |
xlab |
label of the x-axis |
ylab |
label of the y-axis |
xlim |
restrict the range of the function |
color |
the color of the line. defaults to "red" |
size |
the size of the line. defaults to 2 |
... |
Additional arguments to stat_function() |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.