Skip to content

Commit

Permalink
Fix for Issue #150
Browse files Browse the repository at this point in the history
  • Loading branch information
Max-Bladen committed Mar 9, 2022
1 parent 2b6ab06 commit 6c3f988
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/plotArrow.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ plotArrow <- function(object,
object.blocks=c("sgcca", "sgccda", "rgcca")

if (! any(class.object %in% c(object.pls,object.blocks)))
stop( " 'plotArrow' is only implemented for the following objects: pls, plsda, spls, splsda, rcc, sgcca, sgccda, rgcca", call.=FALSE)
stop( " 'plotArrow' is only implemented for the following objects: pls, spls, rcc, sgcca, sgccda, rgcca", call.=FALSE)

if ("DA" %in% class.object && !any(object.blocks %in% class.object)) {
stop("`plotArrow` not implemented for (s)PLSDA or MINT sPLSDA", call.=FALSE)
}

ind.names.position <- match.arg(ind.names.position)
is.multiblock <- ifelse(is.list(object$X), TRUE, FALSE)
Expand Down

0 comments on commit 6c3f988

Please sign in to comment.