Skip to content

Commit e0ece96

Browse files
committed
S3 method consistency
1 parent 63e9cde commit e0ece96

8 files changed

Lines changed: 8 additions & 8 deletions

R/add_censor_mark.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ add_censor_mark <- function(...) {
2525
}
2626

2727
#' @export
28-
ggplot_add.add_censor_mark <- function (object, plot, object_name) {
28+
ggplot_add.add_censor_mark <- function (object, plot, ...) {
2929
update_add_censor_mark(plot, object)
3030
}
3131

R/add_confidence_interval.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ add_confidence_interval <- function(type = c("ribbon", "lines"), ...) {
3131
}
3232

3333
#' @export
34-
ggplot_add.add_confidence_interval <- function (object, plot, object_name) {
34+
ggplot_add.add_confidence_interval <- function (object, plot, ...) {
3535
update_add_confidence_interval(plot, object)
3636
}
3737

R/add_legend_title.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ add_legend_title <- function(title = NULL) {
1919
}
2020

2121
#' @export
22-
ggplot_add.add_legend_title <- function (object, plot, object_name) {
22+
ggplot_add.add_legend_title <- function (object, plot, ...) {
2323
update_add_legend_title(plot, object)
2424
}
2525

R/add_pvalue.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ add_pvalue <- function(location = c("caption", "annotation"),
5252
}
5353

5454
#' @export
55-
ggplot_add.add_pvalue <- function (object, plot, object_name) {
55+
ggplot_add.add_pvalue <- function (object, plot, ...) {
5656
update_add_pvalue(plot, object)
5757
}
5858

R/add_quantile.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ add_quantile <- function(y_value = NULL, x_value = NULL, ...) {
3737
}
3838

3939
#' @export
40-
ggplot_add.add_quantile <- function (object, plot, object_name) {
40+
ggplot_add.add_quantile <- function (object, plot, ...) {
4141
update_add_quantile(plot, object)
4242
}
4343

R/add_risktable.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ add_risktable <- function(times = NULL,
138138
}
139139

140140
#' @export
141-
ggplot_add.add_risktable <- function (object, plot, object_name) {
141+
ggplot_add.add_risktable <- function (object, plot, .__C__.externalptr) {
142142
update_add_risktable(plot, object)
143143
}
144144

R/add_risktable_strata_symbol.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ add_risktable_strata_symbol <- function(symbol = NULL, size = 15, face = "bold",
4040
}
4141

4242
#' @export
43-
ggplot_add.add_risktable_strata_symbol <- function (object, plot, object_name) {
43+
ggplot_add.add_risktable_strata_symbol <- function (object, plot, ...) {
4444
update_add_risktable_strata_symbol(plot, object)
4545
}
4646

R/scale_ggsurvfit.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ scale_ggsurvfit <- function(x_scales = list(), y_scales = list()){
4444

4545

4646
#' @export
47-
ggplot_add.scale_ggsurvfit <- function (object, plot, object_name) {
47+
ggplot_add.scale_ggsurvfit <- function (object, plot, ...) {
4848
update_scale_ggsurvfit(plot, object)
4949
}
5050

0 commit comments

Comments
 (0)