-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #124 from jr-leary7/dev
updated README and tweaked viz tools
- Loading branch information
Showing
13 changed files
with
261 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#' A \code{ggplot2} theme for \code{scLANE}. | ||
#' | ||
#' @name theme_scLANE | ||
#' @author Jack Leary | ||
#' @importFrom ggplot2 theme_classic theme element_rect | ||
#' @description A publication-ready theme for creating gene dynamics plots, embedding plots, etc. | ||
#' @param base.size The base font size. Defaults to 12. | ||
#' @param base.lwd The base linewidth. Defaults to 0.75. | ||
#' @param base.family The font family to be used throughout. Defaults to "sans". | ||
#' @return A \code{ggplot2} theme. | ||
#' @export | ||
#' @examples | ||
#' \dontrun{ | ||
#' plotModels(gene_stats, | ||
#' gene = "CD14", | ||
#' pt = pt_df, | ||
#' expr.mat = count_mat | ||
#' ) + theme_scLANE() | ||
#' } | ||
|
||
theme_scLANE <- function(base.size = 12, | ||
base.lwd = 0.75, | ||
base.family = "sans") { | ||
ggplot2::theme_classic(base_size = base.size, | ||
base_family = base.family, | ||
base_line_size = base.lwd, | ||
base_rect_size = base.lwd) + | ||
ggplot2::theme(strip.clip = "off", | ||
strip.background = ggplot2::element_rect(linewidth = base.lwd)) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.