Skip to content
/ ggmedsl Public

R package for creating ggplot2 graphics using MEDSL style and colors

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

MEDSL/ggmedsl

Repository files navigation

ggmedsl

The goal of ggmedsl is to make the creation of MEDSL-themed plots seamless using ggplot2 and a few functions.

Installation

You can install the latest version of ggmedsl from GitHub using devtools:

devtools::install_github("medsl/ggmedsl")

Examples

The first function within ggmedsl is medsl_plot. This quickly formats a ggplot2 object to render in MEDSL formatting.

mtcars %>% 
  ggplot(aes(mpg, disp, color = factor(carb))) +
  geom_point(size = 3) +
  medsl_plot()

I have also created a number of color scales that follow the MEDSL color theme, scale_color_medsl():

mtcars %>% 
  ggplot(aes(mpg, disp, color = factor(carb))) +
  geom_point(size=3) +
  medsl_plot() + scale_color_medsl()

mtcars %>% 
  ggplot(aes(factor(carb), fill = factor(carb))) + 
  geom_bar() +
  medsl_plot() + scale_fill_medsl()

About

R package for creating ggplot2 graphics using MEDSL style and colors

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages