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

Create data functions for facilitating univariate/1D plots of missings #7

Closed
njtierney opened this issue Dec 14, 2015 · 2 comments
Closed

Comments

@njtierney
Copy link
Owner

No description provided.

@njtierney
Copy link
Owner Author

Current approaches are shown below, using the varname_NA pattern:

library(narnia)
library(tidyverse)
#> Loading tidyverse: ggplot2
#> Loading tidyverse: tibble
#> Loading tidyverse: tidyr
#> Loading tidyverse: readr
#> Loading tidyverse: purrr
#> Loading tidyverse: dplyr
#> Conflicts with tidy packages ----------------------------------------------
#> filter(): dplyr, stats
#> lag():    dplyr, stats

airquality %>%
  bind_shadow() %>%
  ggplot(aes(x = Solar.R,
             colour = Ozone_NA)) + 
  geom_density()
#> Warning: Removed 7 rows containing non-finite values (stat_density).

airquality %>%
  bind_shadow() %>%
  ggplot(aes(x = Solar.R)) + 
  geom_histogram() +
  facet_wrap(~Ozone_NA,ncol = 1)
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
#> Warning: Removed 7 rows containing non-finite values (stat_bin).

note

Renaming this issue to be more about the plots than about the shadow_shift

@njtierney njtierney changed the title Develop shadow_shift method for univariate/1D plots Create data functions for facilitating univariate/1D plots Jun 15, 2017
@njtierney njtierney changed the title Create data functions for facilitating univariate/1D plots Create data functions for facilitating univariate/1D plots of missing Jun 15, 2017
@njtierney njtierney changed the title Create data functions for facilitating univariate/1D plots of missing Create data functions for facilitating univariate/1D plots of missings Jun 15, 2017
@njtierney njtierney added this to To Do in CRAN Version 0.1.0 Jun 21, 2017
@njtierney njtierney moved this from To Do to Priority in CRAN Version 0.1.0 Jun 22, 2017
@njtierney njtierney moved this from Priority to In Progress in CRAN Version 0.1.0 Jun 23, 2017
@njtierney
Copy link
Owner Author

Current behaviour / pattern for this is:

library(narnia)
library(tidyverse)
#> Loading tidyverse: ggplot2
#> Loading tidyverse: tibble
#> Loading tidyverse: tidyr
#> Loading tidyverse: readr
#> Loading tidyverse: purrr
#> Loading tidyverse: dplyr
#> Conflicts with tidy packages ----------------------------------------------
#> filter(): dplyr, stats
#> lag():    dplyr, stats

aq_shadow <- bind_shadow(airquality)

ggplot(aq_shadow,
       aes(x = Temp,
           colour = Solar.R_NA)) + 
  geom_density()

ggplot(aq_shadow,
       aes(x = Temp)) + 
  geom_histogram() +
  facet_wrap(~Solar.R_NA,ncol = 1)
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.

@njtierney njtierney moved this from In Progress to Completed in CRAN Version 0.1.0 Jun 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

No branches or pull requests

1 participant