knitr::opts_chunk$set( comment = "#>", collapse = TRUE, out.width = "70%", fig.align = "center", fig.width = 6, fig.asp = .618 ) options(digits = 3)
Private tools for ggplot2
This package is a set of functions that are frequently used by ygeunkim with ggplot2
.
devtools::install_github("ygeunkim/goodgraphic")
Using tidyverse
package is recommended.
library(tidyverse) library(goodgraphic)
This is the function motivated by @scatter.
gg_scatter(diamonds, mapping = aes(x = carat, y = price), alpha_focus = TRUE, size = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.