knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
mosaicData provides a number of data sets associated with Project MOSAIC.
Find documenation and additional information at http://www.mosaic-web.org/mosaicData/.
You can install the released version of mosaicData from CRAN with:
install.packages("mosaicData")
And the development version from GitHub with:
# install.packages("devtools") devtools::install_github("ProjectMOSAIC/mosaicData")
This is a basic example which shows you how to solve a common problem:
library(mosaicData) suppressPackageStartupMessages(library(ggformula)) head(Weather) gf_linerange(high_temp + low_temp ~ date | city ~ ., color = ~avg_temp, data = Weather) |> gf_refine(scale_color_viridis_c(option = "D", end = 0.95, begin = 0.1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.