Skip to content

Color inconsistency in plot_missing #129

Open
@Quentin62

Description

@Quentin62

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

Metadata

Metadata

Assignees

Labels

type: enhancementImprovement on an existing feature

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions