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

Color inconsistency in plot_missing #129

Open
Quentin62 opened this issue Oct 7, 2019 · 1 comment
Open

Color inconsistency in plot_missing #129

Quentin62 opened this issue Oct 7, 2019 · 1 comment
Assignees
Labels
type: enhancement Improvement on an existing feature

Comments

@Quentin62
Copy link

Hi,
When you use plot_missing, colors associated with good, bad, OK, remove changed regarding the content of the data:

library(DataExplorer)

df <- data.frame(x = rnorm(100), y = rnorm(100), z = rnorm(100), a = rnorm(100), b = rnorm(100))

plot_missing(df)# good in red

image

df$x[1:4] = NA
df$z[91:100] = NA

plot_missing(df)# good in red, OK in blue

image

df$a[40:80] = NA

plot_missing(df)# good in green, bad in red, OK in an other blue

image

It would be more understandable to have a fixed color code.

Thanks

@boxuancui
Copy link
Owner

Thanks! I believe there is a work-around here: https://stackoverflow.com/a/55941266/2158269. Please use that while I come up with a more generic solution to colors.

@boxuancui boxuancui self-assigned this Oct 7, 2019
@boxuancui boxuancui added the type: enhancement Improvement on an existing feature label Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement Improvement on an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants