knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of teaTasteR is to take a dataset and create a "Lady Tasting Tea" lineup plot for doing individual visual inference.
And the development version from GitHub with:
# install.packages("devtools") devtools::install_github("kmaurer/teaTasteR")
In the following example we will demonstrate LTT lineups for testing for independence between carat weight and price from the ggplot2 diamonds data
library(teaTasteR) ## basic example code set.seed(12345) small_diamonds <- ggplot2::diamonds[sample(1:nrow(ggplot2::diamonds),100),] head(small_diamonds)
We will feed it through the make_lineup_dat()
function to prepare the data for plotting
diamonds_lineup_dat <- make_lineup_dat(M=6, dat=small_diamonds, xname="carat", yname="price") head(diamonds_lineup_dat)
Then put into lineup plot.
tt_lineup_plot(diamonds_lineup_dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.