Comments (2)
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
from naniar.
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`.
from naniar.
Related Issues (20)
- Explore options to make `nabular` data smaller
- `vis_miss()` wrong percentage of missing values
- Use `pivot_longer` instead of `gather`
- gdtools dependency/suggests no more needed HOT 1
- re fixing referenced JSS links
- gg_miss_var warns that the current use of the guide argument is deprecated in ggplot2 HOT 1
- Release naniar 1.0.0
- update pkgdown to bootstrap 3
- Gives a warning message saying "The `guide` argument in `scale_*()` cannot be `FALSE`" HOT 2
- `shadow_long` throws an error when gathering variables. HOT 2
- Cannot modify ggplot theme for `gg_miss_upset`. HOT 2
- Improve `miss_summary` by providing a nice print method HOT 1
- Helpers to identify which rows and variables have over a certain % or number of missingns
- consider deprecating `cast_shadow` and friends
- use across with scoped variants with replace_with_na (e.g., _if _at _all)
- use cli for error and warning messages, and expect_snapshot for capturing errors HOT 1
- Implement new `gg_miss_upset()` function
- impute_mean_all throws an error when working with dataset containing categorical variables HOT 2
- Imputation of categorical data HOT 2
- Error running MCAR_TEST: Error in test_if_dataframe(data) : could not find function "test_if_dataframe" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from naniar.