plotlmB | R Documentation |
#' Plot 2D regression line from lmB
plotlmB(x, y, mcmcList, data = NULL, ...)
mcmcList |
a mcmc list (out put from lmB) |
prediction |
if TRUE, prediction intervals are drawn |
JuG
nbPoints = 20
x <-seq(1,10, length = nbPoints)
y <- 3 * x + rnorm(nbPoints, 0,6) + 10
outlmB <- lmB(formula = y~x,returnCodaSamples = T)
plotlmB(x,y,mcmcList = outlmB, ylim=c(0,50))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.