plot.prior | R Documentation |
Plot the probability density function of a prior distribution.
## S3 method for class 'prior'
plot(x, from, to, ...)
x |
prior probability density function defined via |
from |
lower boundary |
to |
upper boundary |
... |
further arguments passed to |
p1 <- prior("t", c(location = 0, scale = 0.707, nu = 1), 0, 3)
plot(p1, 0, 2)
# define custom prior pdf up to a constant:
p2 <- prior("custom", function(x) x^.5, 0, .5)
plot(p2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.