R-CMD-check

sds

R package providing R Markdown templates for SDS

Install

# install.packages("remotes")
remotes::install_github("SmithCollege-SDS/sds")

Load

library(sds)

Add Smith theming to a ggplot

library(ggplot2)
ggplot(mpg, aes(y = hwy, x = reorder(model, hwy), fill = hwy)) +
  geom_col(position = "dodge") +
  coord_flip() +
  facet_wrap(~year) +
  scale_fill_smith_cd(midpoint = 20)

Hex logo!

You can write the logo to a file:

hex_logo(file = "man/figures/logo.png")

Or include it directly in a Markdown document:

img_logo(width = 64)

Write a letter on official SDS letterhead

Select File -> New File -> R Markdown... and choose the Smith SDS Letter template

Write a xaringan presentation with Smith theming

Select File -> New File -> R Markdown... and choose the Smith xaringan template


Post any bugs to Issues!



SmithCollege-SDS/sds documentation built on March 7, 2024, 9:53 p.m.