ropensci / visdat

Preliminary Exploratory Visualisation of Data

Home Page:https://docs.ropensci.org/visdat/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

sfd99 opened this issue · comments

commented

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

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)

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)