Skip to content

fr-pscz/theme_bray

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

theme_bray

Description

R package implementing a ggplot2 theme matching my LaTeX theme.

Installation

devtools::install_github("fr-pscz/theme_bray")

Dependencies

  • ggplot2 for plots
  • DepthProc for ddplot

Usage

After installation, the theme can be initialized with:

start_bray()

New plots will follow the theme. To revert back to ggplot2 defaults (since start_bray() updates geoms to match the dark background, but they won't be legible on light backgrounds) call:

end_bray()

New functions

ddplot

Bringing DepthProc's ddPlot to the ggplot2 ecosystem. In addition to enhanced theme capabilities, it supports point coloring depending on generating distribution.

Example

# Start theme without horizontal grid lines
start_bray(gridh = FALSE)

# Plot ddplot with two bivariate normals
# X ~ Norm(0,10) colored in white
# Y ~ Norm(0,1)  colored in gold
p <- ddplot(X,Y,colory=TRUE)
show(p)

ddplot

About

R package implementing a ggplot2 theme matching my LaTeX theme.

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