-
Notifications
You must be signed in to change notification settings - Fork 54
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
Projects
Comments
Current approaches are shown below, using the 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). noteRenaming this issue to be more about the plots than about the |
shadow_shift
method for univariate/1D plots
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`. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: