PlotDens | R Documentation |
Plot both the Normal density and the Student density using ggplot. The plot also shows shaded areas under each density corresponding to a user-specified interval.
PlotDens(mean = 0, sd = 1, df = 1, a = -1, b = 1, output = "overlay")
mean |
mean of the Normal distribution |
sd |
Standard Deviation of the Normal distribution |
df |
Degree of freedom of the Student's t distribution |
a |
lower bound of the interval of the shaded area |
b |
upper bound of the interval of the shaded area |
output |
which density to plot? "norm", "t", or "overlay" (both). This latter is the default. |
ggplot object
PlotDens()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.