mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2026-06-19 12:37:30 +02:00
limiting dependencies
This commit is contained in:
parent
512fe1ced5
commit
2d35001c33
4 changed files with 46 additions and 41 deletions
|
|
@ -695,7 +695,7 @@ line_break <- function(data, lineLength = 20, force = FALSE) {
|
|||
#' @export
|
||||
#'
|
||||
wrap_plot_list <- function(data, tag_levels = NULL) {
|
||||
if (ggplot2::is.ggplot(data[[1]])) {
|
||||
if (ggplot2::is_ggplot(data[[1]])) {
|
||||
if (length(data) > 1) {
|
||||
out <- data |>
|
||||
(\(.x){
|
||||
|
|
@ -732,7 +732,7 @@ wrap_plot_list <- function(data, tag_levels = NULL) {
|
|||
align_axes <- function(...) {
|
||||
# https://stackoverflow.com/questions/62818776/get-axis-limits-from-ggplot-object
|
||||
# https://github.com/thomasp85/patchwork/blob/main/R/plot_multipage.R#L150
|
||||
if (ggplot2::is.ggplot(..1)) {
|
||||
if (ggplot2::is_ggplot(..1)) {
|
||||
## Assumes list of ggplots
|
||||
p <- list(...)
|
||||
} else if (is.list(..1)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue