Skip to content

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

Description

@adcascone

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.

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