You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/funnel_plot.R
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,6 @@
110
110
#' @importFrom stats na.omit
111
111
#' @import ggplot2
112
112
113
-
114
113
funnel_plot<-function(numerator, denominator, group
115
114
, data_type="SR", limit=99, label="outlier"
116
115
, highlight=NA, draw_unadjusted=FALSE
@@ -127,7 +126,7 @@ funnel_plot <- function(numerator, denominator, group
127
126
128
127
# Version 0.4 deprecation warnings
129
128
if (!missing(label_outliers)) {
130
-
warning('The label_outliers argument deprecated; please use the label argument, e.g. label = "outlier" instead. For more options, see the help: ?funnel_plot',
129
+
warning('The `label_outliers` argument deprecated; please use the `label` argument, e.g. `label = "outlier"` instead. For more options, see the help: `?funnel_plot`',
131
130
call.=FALSE)
132
131
if(label_outliers==TRUE){
133
132
label<-"outlier"
@@ -138,7 +137,7 @@ funnel_plot <- function(numerator, denominator, group
138
137
139
138
# Version 0.4 deprecation warnings
140
139
if (!missing(Poisson_limits)) {
141
-
warning('The Poisson_limits argument deprecated; please use the draw_unadjusted argument. For more information, see the help: ?funnel_plot',
140
+
warning('The `Poisson_limits` argument deprecated; please use the `draw_unadjusted` argument. For more information, see the help: `?funnel_plot`',
142
141
call.=FALSE)
143
142
if(Poisson_limits==TRUE){
144
143
draw_unadjusted<-TRUE
@@ -149,7 +148,7 @@ funnel_plot <- function(numerator, denominator, group
149
148
150
149
# Version 0.4 deprecation warnings
151
150
if (!missing(OD_adjust)) {
152
-
warning('The OD_adjust argument deprecated; please use the draw_adjusted argument. For more information, see the help: ?funnel_plot',
151
+
warning('The `OD_adjust` argument deprecated; please use the `draw_adjusted` argument. For more information, see the help: `?funnel_plot`',
153
152
call.=FALSE)
154
153
if(OD_adjust==TRUE){
155
154
draw_adjusted<-TRUE
@@ -160,19 +159,20 @@ funnel_plot <- function(numerator, denominator, group
160
159
161
160
# Version 0.4 deprecation warnings
162
161
if (!missing(xrange)) {
163
-
warning('The xrange argument deprecated; please use the x_range argument instead. For more options, see the help: ?funnel_plot',
162
+
warning('The `xrange` argument deprecated; please use the `x_range` argument instead. For more options, see the help: `?funnel_plot`',
164
163
call.=FALSE)
165
164
x_range<-xrange
166
165
}
167
166
168
167
# Version 0.4 deprecation warnings
169
168
if (!missing(yrange)) {
170
-
warning('The yrange argument deprecated; please use the y_range argument instead. For more options, see the help: ?funnel_plot',
169
+
warning('The `yrange` argument deprecated; please use the `y_range` argument instead. For more options, see the help: `?funnel_plot`',
171
170
call.=FALSE)
172
171
y_range<-yrange
173
172
}
174
173
175
174
175
+
176
176
# build initial dataframe of obs/predicted, with error message caught here in 'try'
0 commit comments