Skip to content

Commit

Permalink
Themes on plots.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereckmezquita committed Jul 14, 2024
1 parent c914ae2 commit c15528c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/Pca.R
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ Pca <- R6::R6Class(
y = "Percent variation",
caption = stringr::str_interp('Top ${num_pc} PCs included')
) +
theme_dereck_dark() +
ggplot2::theme(axis.text.x = ggplot2::element_text(angle = 90))

return(self$scree)
Expand Down Expand Up @@ -301,6 +302,7 @@ Pca <- R6::R6Class(
colour = if (!is.null(comparison)) "Group" else NA,
caption = caption
) +
theme_dereck_dark() +
ggplot2::theme(legend.position = "bottom")

self$scatter <- plot
Expand Down

0 comments on commit c15528c

Please sign in to comment.