R package implementing a ggplot2
theme matching my LaTeX theme.
devtools::install_github("fr-pscz/theme_bray")
ggplot2
for plotsDepthProc
forddplot
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()
Bringing DepthProc
's ddPlot
to the ggplot2
ecosystem. In addition to enhanced theme capabilities, it supports point coloring depending on generating distribution.
# 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)