Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel-marsh committed Nov 13, 2024
1 parent be9c7dd commit c136659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/Statistics_Plotting.R
Original file line number Diff line number Diff line change
Expand Up @@ -961,12 +961,12 @@ Proportion_Plot <- function(
color_seed = 123
) {
if (!plot_type %in% c("bar", "pie")) {
cli::cli_abort(message = "{.code plot_type} must be one of {.val bar} or {.val pie}")
cli_abort(message = "{.code plot_type} must be one of {.val bar} or {.val pie}")
}

if (plot_type == "pie" && plot_scale == "count") {
cli_warn(message = c("When setting {.code plot_type} to {.val pie} the {.code plot_scale} parameter is ignored",
"i" = "Set {.code plot_type} to {.val bar} in order to plot raw cell counts.."))
"i" = "Set {.code plot_type} to {.val bar} in order to plot raw cell counts."))
}

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

0 comments on commit c136659

Please sign in to comment.