ropensci / visdat

Preliminary Exploratory Visualisation of Data
https://docs.ropensci.org/visdat/
Other
450 stars 47 forks source link

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

Closed sfd99 closed 5 years ago

sfd99 commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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)