Skip to content

Commit

Permalink
feat: theme_dark
Browse files Browse the repository at this point in the history
- default dark plotting theme. Can be used with `theme_param` args in plotting functions
  • Loading branch information
jiajic committed Sep 26, 2024
1 parent d9aa800 commit a20b015
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion R/gg_settings.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@
}



#' @name theme_dark
#' @title Dark plotting theme
#' @description
#' A default dark theme. It can be applied through the `theme_param`
#' @export
theme_dark <- theme(
plot.background = element_rect(fill = "black"),
panel.background = element_rect(fill = "black"),
panel.grid.major = element_blank(),
panel.grid.minor = element_blank(),
text = element_text(color = "white"),
axis.text = element_text(color = "white"),
title = element_text(color = "white"),
legend.background = element_rect(fill = "black"),
legend.text = element_text(color = "white"),
legend.title = element_text(color = "white")
)


0 comments on commit a20b015

Please sign in to comment.