knitr::opts_chunk$set(
  comment = "#>",
  collapse = TRUE,
  out.width = "70%",
  fig.align = "center",
  fig.width = 6,
  fig.asp = .618
  )
options(digits = 3)

goodgraphic

Private tools for ggplot2

This package is a set of functions that are frequently used by ygeunkim with ggplot2.

Install

devtools::install_github("ygeunkim/goodgraphic")

Using tidyverse package is recommended.

library(tidyverse)
library(goodgraphic)

Scatter plot

This is the function motivated by @scatter.

gg_scatter(diamonds, mapping = aes(x = carat, y = price), alpha_focus = TRUE, size = 2)

Reference



ygeunkim/goodgraphic documentation built on July 1, 2019, 1:37 a.m.