Skip to content

The package needs to be updated for the latest R #291

Description

@mmahmoudian

I'm on R version 4.5.3 and the corrplot throws an error and a warning that is repeated multiple times. The following code uses the iris data to demo the issue:

rcorr_res <- Hmisc::rcorr(x = as.matrix(iris[, -5]), type = "spearman")

corrplot::corrplot(corr      = rcorr_res$r,
                   p.mat     = rcorr_res$P,
                   insig     = "pch",
                   sig.level = 0.05,
                   pch.cex   = 0.9,
                   
                   type      = "upper",
                   method    = "ellipse",
                   
                   order     = "hclust",
                   hclust.method = "complete",
                   
                   title     = "Correlation of the significant features")

This would throw this warning:

Warning in seq.default(ylim[1], ylim[2], length = len + 1) :
  partial argument match of 'length' to 'length.out'

and this error:

Error in data.frame(..., check.names = FALSE) : 
  arguments imply differing number of rows: 10, 6

The warning is because the seq.default() function is not updated and the the length argument have changed to length.out. I haven't yet find the time to check the reason behind the error. The error occurs when the p.mat is provided, otherwise it just throws the warning.

P.s: The last commit in the master branch dates back to 2 years ago. I wonder if this project is still active.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions