ggplot2pipes
suppressPackageStartupMessages({ library(dplyr) library(ggplot2) library(ggplot2pipes) }) knitr::opts_chunk$set(echo = TRUE)
ggplot2pipes
is a package for creating pipe-enabled versions of ggplot2
functions.
init_ggplot2_pipes()
to create all the pipe-enabled functionslibrary(dplyr) library(ggplot2) library(ggplot2pipes) init_ggplot2_pipes() ggplot(mtcars) %>% add_geom_line(aes(mpg, wt)) %>% add_labs(title="hello") %>% add_theme_bw() %>% add_facet_wrap(~am)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.