powered by
Plot the probability density function of a prior distribution.
# S3 method for prior plot(x, from, to, ...)
prior probability density function defined via prior.
prior
lower boundary
upper boundary
further arguments passed to plot
plot
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)
Run the code above in your browser using DataLab