Skip to content

Commit

Permalink
Fixed plotting dimensions issue
Browse files Browse the repository at this point in the history
  • Loading branch information
WillNickols committed Jul 27, 2024
1 parent 815d8c0 commit cc1ac91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/viz.R
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit cc1ac91

Please sign in to comment.