Skip to content

LimnoTech/limnothemes

Repository files navigation

limnothemes

The goal of limnothemes is to create a repo of ggplot2 themes for LimnoTech projects.

Installation

You can install the released version of limnothemes from github:

devtools::install_github("LimnoTech/limnothemes")

Usage Comparisons

# Base ggplot

library(limnothemes)

ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color=Species)) +
  geom_point()
  
  
# Limno Theme 

ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color=Species)) + 
  geom_point() + 
  scale_color_limno() + 
  theme_limno()
# Room for Improvement

ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color=Species)) + 
  geom_point(size = 1.5) + 
  coord_cartesian(clip = "off") +
  scale_x_continuous(breaks = pretty_breaks(6), 
                     limits= c(floor(min(iris$Sepal.Length)),ceiling(max(iris$Sepal.Length))),
                     expand = c(0,0)) +
  scale_y_continuous(breaks = pretty_breaks(4), 
                     limits= c(floor(min(iris$Sepal.Width)),ceiling(max(iris$Sepal.Width))),
                     expand = c(0,0)) + 
  scale_color_limno() + 
  theme_limno()


# Want to change defaults for the following: 
#1) geom_point size (see update_geom_defaults())
#2) work on bounding extents using scales
#3) default setting clip = "off"

About

No description, website, or topics provided.

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