aboutsummaryrefslogtreecommitdiff
path: root/R/plot.gensvm.R
diff options
context:
space:
mode:
Diffstat (limited to 'R/plot.gensvm.R')
-rw-r--r--R/plot.gensvm.R2
1 files changed, 1 insertions, 1 deletions
diff --git a/R/plot.gensvm.R b/R/plot.gensvm.R
index e79881f..ac40ccf 100644
--- a/R/plot.gensvm.R
+++ b/R/plot.gensvm.R
@@ -65,7 +65,7 @@ plot.gensvm <- function(fit, x, y.true=NULL, with.margins=TRUE,
{
if (!(fit$n.classes %in% c(2,3))) {
cat("Error: Can only plot with 2 or 3 classes\n")
- invisible(NULL)
+ return(invisible(NULL))
}
# Sanity check