From b56c98398db6b85411cc262a835ed44224d066f3 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Fri, 30 Mar 2018 22:08:12 +0100 Subject: Minor fixes --- R/plot.gensvm.grid.R | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'R/plot.gensvm.grid.R') diff --git a/R/plot.gensvm.grid.R b/R/plot.gensvm.grid.R index 6f042e9..abb0601 100644 --- a/R/plot.gensvm.grid.R +++ b/R/plot.gensvm.grid.R @@ -5,7 +5,6 @@ #' \code{\link{plot.gensvm}} for more information. #' #' @param grid A \code{gensvm.grid} object trained with refit=TRUE -#' @param x the dataset to plot #' @param ... further arguments are passed to the plot function #' #' @return returns the object passed as input @@ -32,12 +31,12 @@ #' grid <- gensvm.grid(x, y) #' plot(grid, x) #' -plot.gensvm.grid <- function(grid, x, ...) +plot.gensvm.grid <- function(grid, ...) { if (is.null(grid$best.estimator)) { cat("Error: Can't plot, the best.estimator element is NULL\n") return } fit <- grid$best.estimator - return(plot(fit, x, ...)) + return(plot(fit, ...)) } -- cgit v1.2.3