Skip to content

Commit 05c177a

Browse files
committed
fixed merge issue about default colours
1 parent 1670df2 commit 05c177a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

R/funnel_plot.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
#' Default has been chosen to avoid red and green which can lead to subconscious value judgements of good or bad.
4949
#' Default is hex colours: c("#FF7F0EFF", "#FF7F0EFF", "#1F77B4FF","#1F77B4FF", "#9467BDFF", "#9467BDFF", "#2CA02CFF", "#2CA02CFF")
5050
#' @param SHMI_rounding TRUE/FALSE, for SHMI calculation (standardised ratio, with SHMI truncation etc.), should you round the expected values to 2 decimal places (TRUE) or not (FALSE)
51-
#' @param max.overlaps Exclude text labels that overlap too many things. Defaults to 10. (inheritted from geom_label_repel)
51+
#' @param max.overlaps Exclude text labels that overlap too many things. Defaults to 10. (inherited from geom_label_repel)
5252
#'
5353
#' @return A fitted `funnelplot` object. A `funnelplot` object is a list containing the following components:\cr
5454
#' \item{print}{Prints the number of points, outliers and whether the plot has been adjusted, and prints the plot}
@@ -122,8 +122,8 @@ funnel_plot <- function(.data, numerator, denominator, group
122122
, multiplier = 1, x_label = "Expected"
123123
, y_label , x_range = "auto", y_range = "auto"
124124
, plot_cols =
125-
c("#FF7F0EFF", "#1F77B4FF"
126-
, "#9467BDFF", "#2CA02CFF")
125+
c("#FF7F0EFF", "#FF7F0EFF", "#1F77B4FF","#1F77B4FF",
126+
"#9467BDFF", "#9467BDFF", "#2CA02CFF", "#2CA02CFF")
127127
, theme = funnel_clean()
128128
, label_outliers, Poisson_limits, OD_adjust
129129
, xrange, yrange
@@ -194,7 +194,7 @@ funnel_plot <- function(.data, numerator, denominator, group
194194

195195

196196
if(length(plot_cols) < 8){
197-
stop("Please supply a vector of 4 colours for funnel limits, in order: 95% Lower Poisson, 95% Upper Poisson
197+
stop("Please supply a vector of 8 colours for funnel limits, in order: 95% Lower Poisson, 95% Upper Poisson
198198
, 99.8% Lower Poisson, 99.8% Upper Poisson, 95% Upper OD-adjusted, 95% Lower OD-adjusted,
199199
99.8% Lower OD-adjusted, 99.8% Upper OD-adjusted, even if you are only using one set of limits.")
200200
}

0 commit comments

Comments
 (0)