Skip to content

Commit

Permalink
fix error messages and titles
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel-marsh committed Oct 1, 2024
1 parent 98f1e77 commit 12930b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions R/Plotting_Utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -1665,6 +1665,8 @@ Plot_Pie_Proportions <- function(
})

plots <- wrap_plots(plots, guides = "collect", ncol = num_columns)
plots <- plots + plot_annotation(title = "Proportion of Cells", theme = plot.title = element_text(hjust = 0.5))

return(plots)
}
}
Expand Down
4 changes: 2 additions & 2 deletions R/Statistics_Plotting.R
Original file line number Diff line number Diff line change
Expand Up @@ -963,8 +963,8 @@ Proportion_Plot <- function(
}

if (plot_type == "pie" && plot_scale == "count") {
cli_warn(message = c("When using {.code plot_type = 'pie'} the {.code plot_scale} parameter is ignored",
"i" = "To plot using {.code plot_scale = 'percent'}, set {.code plot_type = 'bar'}."))
cli_warn(message = c("When using {.code plot_type = pie} the {.code plot_scale} parameter is ignored",
"i" = "To plot using {.code plot_scale = 'count'}, set {.code plot_type = bar}."))
}

if (plot_type == "pie") {
Expand Down

0 comments on commit 12930b3

Please sign in to comment.