8000 Think about how to visualise cases where more than one variable is imputed · Issue #57 · njtierney/naniar · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Think about how to visualise cases where more than one variable is imputed #57
Open
@njtierney

Description

@njtierney
library(simputation)
library(narnia)
library(tidyverse)
# impute Ozone

So I can use the shadow matrix and then impute values and keep track of them, which is really nifty!

aq_shadow <- bind_shadow(airquality)

# impute the values and visualise
impute_lm(Ozone ~ Temp + Wind, 
          dat = aq_shadow) %>%
  ggplot(aes(x = Temp,
             y = Ozone,
             colour = Ozone_NA)) + 
  geom_point()

But if I impute more than one variable, and I want to visualise both imputations, I cannot make the imputations visible on the one graphic

aq_shadow %>%
  impute_lm(Ozone ~ Temp + Wind) %>%
  impute_lm(Solar.R ~ Temp + Wind) %>%
  ggplot(aes(x = Solar.R,
             y = Ozone,
             colour = Ozone_NA)) + 
  geom_point()

I would need to make two graphics. Or think of a way to incorporate this extra information.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0