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

vis_cor(iris[,1:4]) shows plot ok but color LEGEND (@right) only shows red, positive values #110

Closed
sfd99 opened this issue Feb 2, 2019 · 2 comments · Fixed by #112
Closed
Labels

Comments

@sfd99
Copy link

sfd99 commented Feb 2, 2019

Hi,
I love VISDAT!

vis_cor(iris[,1:4])
shows plot ok,
but the correlation color LEGEND (@right of the plot) ,
only shows positive values:
0.0 (white)
0.5 (light red)
1.0 (dark red)
but the Legend _does not show the negative value: -0.5 (blue).
The negative (blue) value is missing in the correlation Legend scale.
Try it!.

OTOH:
vis_cor(mtcars) or vis_cor(airquality)
does show the correct LEGEND.
(ie: negative and positive values).

sfd99
San Francisco

@njtierney njtierney added the bug label Feb 2, 2019
@njtierney
Copy link
Collaborator

Here's a minimal reprex:

library(visdat)

vis_cor(airquality)

vis_cor(iris[, 1:4])

Created on 2019-02-04 by the reprex package (v0.2.1)

@njtierney
Copy link
Collaborator

Thanks for posting this issue!

This is now resolved in the dev version, which should be on CRAN this week:

library(visdat)

vis_cor(airquality)

vis_cor(iris[, 1:4])

Created on 2019-02-04 by the reprex package (v0.2.1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants