Skip to content

timcdlucas/ggplotThemes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ggplot2 themes

I will use this repo to collect themes. I intend to write at least a basic theme and a presentation theme.

I will probably also write a theme to use in my nicely typesetted thesis as well as perhaps a poster theme and a blogpost theme.

I started with and was largely inspired by Noam Ross's theme.

Base theme

ggplot(d, aes(x = a, y = b, fill = c)) + 
  geom_bar(stat = 'identity', position=position_dodge()) +
  xlab('The X axis') + 
  ylab('The Y axis') +
  theme_tcdl

plot of chunk baseTheme

ggplot(d, aes(x = a, y = b)) + 
  geom_point(size = 3.5) +
  xlab('The X axis') + 
  ylab('The Y axis') +
  theme_tcdl

plot of chunk baseTheme

ggplot(d, aes(x = a, y = b, fill = c)) + 
  geom_bar(stat = 'identity', position=position_dodge()) +
  xlab('The X axis') + 
  ylab('The Y axis') +
  theme_pres

plot of chunk presTheme

ggplot(d, aes(x = a, y = b)) + 
  geom_point(size = 3.5) +
  xlab('The X axis') + 
  ylab('The Y axis') +
  theme_pres

plot of chunk presTheme

About

My themes for use with ggplot2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages