fix: clean up theme.R and logo.R before restyling
R-CMD-check / R CMD check (push) Successful in 1m45s
R-CMD-check / R CMD check (push) Successful in 1m45s
theme.R: - Remove deprecated legend.text.align and legend.title.align (ggplot2 3.5.0) - Remove stale @importFrom graphics plot (unused in theme function) logo.R: - Fix make_logo_grob() spurious two-row data frame (drop aes/data from canvas) - Fix add_logo_ga() caption measurement always using first plot; now uses max across all plots with captions - Fix add_logo_ga() ncol hardcoded to 2; now uses length(plot_list) - Fix add_logo_ga() widths silently ignored in nrow > 1 path; now warns - Replace deprecated qplot() in examples with ggplot() equivalents - Fix native = T -> TRUE in plot_jpeg()
This commit is contained in:
@@ -6,7 +6,6 @@
|
||||
#' @param rel_small default 12/14, the scale factor to create a small font from the base font_size
|
||||
#' @param rel_tiny default 11/14, the scale factor to create a tiny font from the base font_size
|
||||
#' @param rel_large default 16/14, the scale factor to create a large font from the base font_size
|
||||
#' @importFrom graphics plot
|
||||
#' @return a ggplot2 theme object suitable for combining with ggplot objects to theme them
|
||||
#' @export
|
||||
theme_civilytics <-
|
||||
@@ -92,9 +91,7 @@ theme_civilytics <-
|
||||
legend.key.height = NULL,
|
||||
legend.key.width = NULL,
|
||||
legend.text = element_text(size = rel(rel_small)),
|
||||
legend.text.align = NULL,
|
||||
legend.title = element_text(hjust = 0),
|
||||
legend.title.align = NULL,
|
||||
legend.position = "right",
|
||||
legend.direction = NULL,
|
||||
legend.justification = c("left",
|
||||
|
||||
Reference in New Issue
Block a user