Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

corrplot() with corrRect() using the name parameter not providing expected results #286

Open
adcascone opened this issue Jan 29, 2025 · 0 comments

Comments

@adcascone
Copy link

Hello,

I'm trying to reproduce this output in the 'An introduction to corrplot package' vignette:

Image

I am running this code, which is copy/pasted from the vignette:

library(dplyr)
library(seriation)
data(Zoo)
Z = cor(Zoo[, -c(15, 17)])

# use name parameter
# Since R 4.1.0, the following one line code works:
# corrplot(M, order = 'AOE') |> corrRect(name = c('gear', 'wt', 'carb'))
corrplot(Z, order = 'AOE') %>%
  corrRect(name = c('tail', 'airborne', 'venomous', 'predator'))

My output does not match the vignette, though. Instead, this is the plot I am seeing:

Image

Is the plot included in the vignette outdated? Or is this indicative of a bug in the functions used? Based on my knowledge, I believe the output should look like what's currently shown in the vignette, not what I am producing on my own.

For reference, I'm using corrplot version 0.95

Thank you for your time!

Arianna C.

@adcascone adcascone changed the title corrplot() with corrRect() not providing expected results corrplot() with corrRect() using the name parameter not providing expected results Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant