knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

conethemes

Travis build status

The goal of conethemes is to ...

Installation

You can install the released version of conethemes from CRAN with:

# NOT YET
install.packages("conethemes")

Or the development version at :

remotes::install_github("medewitt/conethemes")

This package borrows heavily from that of the Urban Institute

library(ggplot2)
library(conethemes)
library(dplyr)
theme_set(theme_bw())

set_cone_defaults(style = "print")

ggplot(data = mtcars, mapping = aes(factor(cyl))) +
  geom_bar() + 
  scale_y_continuous(expand = expand_scale(mult = c(0, 0.1))) +
  labs(x = "Number of Cylinders",
       y = "Count") +
  remove_ticks()
my_plot <- ggplot(data = mtcars, mapping = aes(factor(cyl))) +
  geom_bar() + 
  scale_y_continuous(expand = expand_scale(mult = c(0, 0.1))) +
  labs(x = "Number of Cylinders",
       y = "Count") +
  remove_ticks()

my_plot %>% 
  add_text_logo()
my_plot %>% 
  add_pic_logo()


medewitt/conethemes documentation built on Sept. 2, 2019, 1:28 a.m.