From cc1ac91adf13ce48b747115561c999262039a420 Mon Sep 17 00:00:00 2001 From: Will Nickols Date: Sat, 27 Jul 2024 09:24:28 -0500 Subject: [PATCH] Fixed plotting dimensions issue --- R/viz.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/viz.R b/R/viz.R index a28347b..d4e32d9 100644 --- a/R/viz.R +++ b/R/viz.R @@ -560,7 +560,7 @@ maaslin3_association_plots <- ggplot2::scale_y_continuous(expand = ggplot2::expansion(mult = c(0, 0.2))) temp_plot <- temp_plot + - nature_theme(metadata_name, + nature_theme(.data$metadata, paste0(feature_name, '\n(Normalization: ', normalization, ', Transformation: ', transformation, ')')) + ggplot2::theme( panel.grid.major = ggplot2::element_blank(), @@ -730,7 +730,7 @@ maaslin3_association_plots <- legend.position = "none") temp_plot <- temp_plot + - nature_theme(metadata_name, joined_features_metadata_prev['feature_abun']) + + nature_theme(as.character(table_df$metadata), joined_features_metadata_prev['feature_abun']) + ggplot2::theme( panel.grid.major = ggplot2::element_blank(), panel.grid.minor = ggplot2::element_blank(),