knitr::opts_chunk$set(echo = TRUE)
This is a packaged collection of R functions for data mining originally developed by Thomas Minka for teaching at CMU.
There are many other packages on CRAN that can replicate this functionality. However, the idea of using visualisation to build regression models is attractive, and the package only depends on base R.
You can install the package in RStudio using the devtools
package:
if (!require(devtools)) install.packages("devtools") devtools::install_github("paulemms/datamining")
library(datamining) packageVersion("datamining")
The package contains a number of example data sets. The data below is
a modified version of the Boston
data set in the MASS
package.
data(Housing) head(Housing)
An example plot is shown below.
color.plot(Price ~ Rooms + Low.Status, Housing, color.palette=YlGnBu.colors)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.