library("knitr")
# upload all images to imgur.com
opts_knit$set(
  upload.fun = imgur_upload,
  base.url = NULL
)
library("ggplot2")

Scatter plot

ggplot(mtcars, aes(cyl, hp)) + 
  geom_point() + 
  theme_grey(base_size = 18)

Bar plot

ggplot(iris, aes(Species, Sepal.Length)) + 
  stat_boxplot() +
  theme_grey(base_size = 18)


Try the gistr package in your browser

Any scripts or data that you put into this service are public.

gistr documentation built on July 29, 2020, 9:07 a.m.