Skip to content

Commit dca104a

Browse files
committed
fix check note
1 parent 6807036 commit dca104a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/plot.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
#' }
4949
plot.SCGLR <- function(x, ..., style=getOption("plot.SCGLR"), plane=c(1, 2)) {
5050
data <- x
51-
if (class(data) != "SCGLR")
51+
if (!inherits(data, "SCGLR"))
5252
stop("This plot function need an SCGLR result")
5353

5454
if (dim(data$compr)[2] < 2)

0 commit comments

Comments
 (0)