Skip to content

Commit 653e51d

Browse files
committed
changing the argument name must also be followed by changing the name within the functions.
1 parent 36234d6 commit 653e51d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

R/plm_methods.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ summary.plm0 <- function(object,...){
467467
#' @importFrom ggplot2 autoplot
468468
#' @export
469469
autoplot.plm0 <- function(object,...,type='rating_curve',param=NULL,transformed=FALSE,title=NULL,xlim=NULL,ylim=NULL){
470-
plot_fun(x,type=type,param=param,transformed=transformed,title=title,xlim=xlim,ylim=ylim)
470+
plot_fun(object,type=type,param=param,transformed=transformed,title=title,xlim=xlim,ylim=ylim)
471471
}
472472

473473
#' Plot method for discharge rating curves
@@ -565,7 +565,7 @@ summary.plm <- function(object,...){
565565
#' @describeIn autoplot.plm0 Autoplot method for plm
566566
#' @export
567567
autoplot.plm <- function(object,...,type='rating_curve',param=NULL,transformed=FALSE,title=NULL,xlim=NULL,ylim=NULL){
568-
plot_fun(x,type=type,param=param,transformed=transformed,title=title,xlim=xlim,ylim=ylim)
568+
plot_fun(object,type=type,param=param,transformed=transformed,title=title,xlim=xlim,ylim=ylim)
569569
}
570570

571571
#' @describeIn plot.plm0 Plot method for plm
@@ -604,7 +604,7 @@ summary.gplm0 <- function(object,...){
604604
#' @describeIn autoplot.plm0 Autoplot method for gplm0
605605
#' @export
606606
autoplot.gplm0 <- function(object,...,type='rating_curve',param=NULL,transformed=FALSE,title=NULL,xlim=NULL,ylim=NULL){
607-
plot_fun(x,type=type,param=param,transformed=transformed,title=title,xlim=xlim,ylim=ylim)
607+
plot_fun(object,type=type,param=param,transformed=transformed,title=title,xlim=xlim,ylim=ylim)
608608
}
609609

610610
#' @describeIn plot.plm0 Plot method for gplm0
@@ -643,7 +643,7 @@ summary.gplm <- function(object,...){
643643
#' @describeIn autoplot.plm0 Autoplot method for gplm
644644
#' @export
645645
autoplot.gplm <- function(object,...,type='rating_curve',param=NULL,transformed=FALSE,title=NULL,xlim=NULL,ylim=NULL){
646-
plot_fun(x,type=type,param=param,transformed=transformed,title=title,xlim=xlim,ylim=ylim)
646+
plot_fun(object,type=type,param=param,transformed=transformed,title=title,xlim=xlim,ylim=ylim)
647647
}
648648

649649
#' @describeIn plot.plm0 Plot method for gplm

R/tournament_methods.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ autoplot.tournament <- function(object,...,type='deviance'){
172172
if(!(type %in% legal_types)){
173173
stop(paste('Type argument not recognized. Possible types are:\n - ',paste(legal_types,collapse='\n - ')))
174174
}else if(type=="deviance"){
175-
p <- plot_tournament_fun(x,type=type)
175+
p <- plot_tournament_fun(object,type=type)
176176
}
177177
return(p)
178178
}

0 commit comments

Comments
 (0)