knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(gglmplot)
gglmplot is an example project invented to demonstrate how to create R packages and use github. The only (currently) function in this package shows a plot of a linear regression model along with confidence and prediction intervals. Here is an example how to use it:
## generate example data x <- rnorm(100) y <- x + rnorm(100) model <- lm(y ~ x) gglmplot(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.