knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
The goal of hw09 is to create an easy to use package that allows users to quickly visualize the objects produced in a simple linear model, including a table of regression coefficients and p values, as well as qplot using the lmfun() function. Please note, the pow function is a silly add on that was mostly developed in class.
The gapminder data were included as a readily accessible way for the user to practice using the function. I added to the pow function we developed in class to include plots but also to exploit some of the different test that expressions.
This is a basic example which shows you how to solve a common problem:
library(hw09) lmfun(gapminder$lifeExp, gapminder$gdpPercap, mydata = gapminder) pow(1:35, 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.