Open brfitzpatrick opened 5 years ago
Thanks for this, Ben, here's a reprex to demonstrate this error
library(tibble)
library(visdat)
# shows missings as all grey
vis_miss(x = tibble(x = c(NA, NA, NA), y = c(NA, NA, NA)))
# shows missings as black and complete as grey
vis_miss(x = tibble(x = c(NA, NA, NA), y = c(NA, 1, NA)))
Created on 2023-04-25 with reprex v2.0.2
Hello, I'm using visdat_0.5.1 and noticed a small issue with the default colour scale and legend.
vis_miss(x = tibble(x = c(NA, NA, NA), y = c(NA, NA, NA)))
gives as raster of grey filled cells with only 'Present (0%)' in the legend next to a grey square.
This seems inconsistent with
vis_miss(x = tibble(x = c(NA, NA, NA), y = c(NA, 1, NA)))
which gives a raster where missing observations are represented by black filled cells and present observations are represented by grey filled cells and the legend states both the percentage of present observations (next to a grey filled square) and the percentage of missing observation (next to a black filled square).