Skip to content

Commit

Permalink
miss_case_table and miss_var_table now has final column names `pc…
Browse files Browse the repository at this point in the history
…t_vars`,

and `pct_cases` instead of `pct_miss` - fixes #178. Also updated .svg tests using dev ggplot2
  • Loading branch information
njtierney committed Jun 20, 2018
1 parent 1a779f5 commit 7db68a0
Show file tree
Hide file tree
Showing 26 changed files with 3,143 additions and 3,136 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: naniar
Type: Package
Title: Data Structures, Summaries, and Visualisations for Missing Data
Version: 0.3.1.9000
Version: 0.3.1.9100
Authors@R: c(
person("Nicholas", "Tierney",
role = c("aut", "cre"),
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# naniar 0.3.1.91000 (2018/06/10)

## Minor Change

- `miss_case_table` and `miss_var_table` now has final column names `pct_vars`,
and `pct_cases` instead of `pct_miss` - fixes #178.

# naniar 0.3.1 (2018/06/10) "Strawberry's Adventure"

## Minor Change
Expand Down
4 changes: 2 additions & 2 deletions R/miss-x-table.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ miss_case_table.default <- function(data){
data %>%
dplyr::group_by(n_miss_in_case) %>%
dplyr::tally() %>%
dplyr::mutate(pct_miss = (n / nrow(data) * 100)) %>%
dplyr::mutate(pct_cases = (n / nrow(data) * 100)) %>%
dplyr::rename(n_cases = n)

}
Expand Down Expand Up @@ -93,7 +93,7 @@ miss_var_table.default <- function(data){
dplyr::group_by(n_miss_in_var) %>%
dplyr::tally() %>%
dplyr::rename(n_vars = n) %>%
dplyr::mutate(pct_miss = (n_vars / ncol(data) * 100))
dplyr::mutate(pct_vars = (n_vars / ncol(data) * 100))

}

Expand Down
2 changes: 1 addition & 1 deletion man/naniar-ggproto.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/figs/deps.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ FreeType: 2.7.0
Cairo: 1.14.6
vdiffr: 0.2.3
svglite: 1.2.1
ggplot2: 2.2.1
ggplot2: 2.2.1.9000
368 changes: 184 additions & 184 deletions tests/figs/geom-miss-point/geom-miss-point.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 40 additions & 40 deletions tests/figs/gg-miss-case-cumsum/gg-miss-case-cumsum.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
576 changes: 288 additions & 288 deletions tests/figs/gg-miss-case/gg-miss-case-group-and-sort-show-pct.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
576 changes: 288 additions & 288 deletions tests/figs/gg-miss-case/gg-miss-case-group-and-sort.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
576 changes: 288 additions & 288 deletions tests/figs/gg-miss-case/gg-miss-case-group-show-pct.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
576 changes: 288 additions & 288 deletions tests/figs/gg-miss-case/gg-miss-case-group.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
360 changes: 180 additions & 180 deletions tests/figs/gg-miss-case/gg-miss-case-plot-show-pct.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
360 changes: 180 additions & 180 deletions tests/figs/gg-miss-case/gg-miss-case-sort-show-pct.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
366 changes: 183 additions & 183 deletions tests/figs/gg-miss-case/gg-miss-case-sort.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
366 changes: 183 additions & 183 deletions tests/figs/gg-miss-case/gg-miss-case.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
666 changes: 333 additions & 333 deletions tests/figs/gg-miss-fct/gg-miss-fct.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
280 changes: 140 additions & 140 deletions tests/figs/gg-miss-span/gg-miss-span-group.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
112 changes: 56 additions & 56 deletions tests/figs/gg-miss-span/gg-miss-span.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
84 changes: 42 additions & 42 deletions tests/figs/gg-miss-var-cumsum/gg-miss-var-cumsum.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 7db68a0

Please sign in to comment.