Skip to content

Commit

Permalink
adds example of time exploration with gg_miss_fct to visualisation vi…
Browse files Browse the repository at this point in the history
…gnette - see #254
  • Loading branch information
njtierney committed May 19, 2020
1 parent 643fa1e commit 7b9598e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions vignettes/naniar-visualisation.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,18 @@ riskfactors %>%
```

`gg_miss_fct` can also be used to explore missingness along time, like so:

```{r}
gg_miss_fct(oceanbuoys, year)
# to load who data
library(tidyr)
gg_miss_fct(who, year)
```


(Thanks to [Maria Paula Caldas](https://github.com/mpaulacaldas) for inspiration for this visualisation, [discussed here](https://github.com/njtierney/naniar/issues/254))

## Missingness along a repeating span with `gg_miss_span`

This plot shows the number of missings in a given span, or breaksize, for a single selected variable. In this case we look at the span of `hourly_counts` from the pedestrian dataset. It is powered by the `miss_var_span` function
Expand Down

0 comments on commit 7b9598e

Please sign in to comment.