Skip to content

Commit

Permalink
rename package to CS Lewis's Narnia
Browse files Browse the repository at this point in the history
  • Loading branch information
njtierney committed Jun 1, 2017
1 parent 82095ec commit 1542567
Show file tree
Hide file tree
Showing 94 changed files with 2,185 additions and 1,181 deletions.
16 changes: 8 additions & 8 deletions DESCRIPTION
@@ -1,4 +1,4 @@
Package: naniar
Package: narnia
Type: Package
Title: Provide Summaries and Visualisations for Missing Data
Version: 0.0.6.9100
Expand All @@ -9,9 +9,9 @@ Authors@R: c(
person("Miles", "McBain", , "miles.mcbain@gmail.com", role = "aut")
)
Description: Missing values are ubiquitous in data and need to be explored and
handled in the initial stages of analysis. naniar provides helpers for
handled in the initial stages of analysis. narnia provides helpers for
exploring missing data dependencies with minimal deviation from the common
workflows of ggplot and tidy data. naniar builds data structures and
workflows of ggplot and tidy data. narnia builds data structures and
functions that ensure missings are plotted easily and enables imputations
to be examined.
License: MIT + file LICENSE
Expand Down Expand Up @@ -42,21 +42,21 @@ Imports:
Remotes:
njtierney/visdat
RoxygenNote: 6.0.1.9000
Collate:
Collate:
'add_cols.R'
'data.R'
'defunct_missing_data_tidiers.R'
'legend-draw.R'
'geom_missing_point.R'
'label_missings.R'
'missing_data_tidiers.R'
'naniar-ggproto.R'
'naniar-package.R'
'narnia-ggproto.R'
'narnia-package.R'
'old_shadow_shifters.R'
'plotting.R'
'shadow_shifters.R'
'shadows.R'
'stat_missing_point.R'
'utils.R'
URL: https://github.com/njtierney/naniar
BugReports: https://github.com/njtierney/naniar/issues
URL: https://github.com/njtierney/narnia
BugReports: https://github.com/njtierney/narnia/issues
4 changes: 4 additions & 0 deletions NEWS.md
@@ -1,3 +1,7 @@
# narnia 0.0.7.9000 (2017/06/02)

* renamed package from `naniar` to `narnia` - I had to explain the spelling a few times when I was introducing the package and I realised that I should change the name. Fortunately it isn't on CRAN yet.

# naniar 0.0.6.9100 (2017/03/21)

* Added `prop_miss` and the complement `prop_complete`. Where `n_miss` returns the number of missing values, `prop_miss` returns the proportion of missing values. Likewise, `prop_complete` returns the proportion of complete values.
Expand Down
2 changes: 1 addition & 1 deletion R/defunct_missing_data_tidiers.R
Expand Up @@ -102,7 +102,7 @@ summary_missing_case <- function(...){
use 'miss_case_summary' instead")
}

#' Collate summary measures from naniar into one tibble
#' Collate summary measures from narnia into one tibble
#'
#' Deprecated as of version 0.0.6.9000. Please use miss_summary instead.
#'
Expand Down
3 changes: 1 addition & 2 deletions R/geom_missing_point.R
Expand Up @@ -48,7 +48,6 @@
#' @examples
#'
#' library(ggplot2)
#' library(naniar)
#'
#' # using regular geom_point()
#' ggplot(airquality,
Expand Down Expand Up @@ -88,7 +87,7 @@ geom_missing_point <- function(mapping = NULL,

}

#' @rdname naniar-ggproto
#' @rdname narnia-ggproto
#' @format NULL
#' @usage NULL
#' @export
Expand Down
2 changes: 1 addition & 1 deletion R/legend-draw.R
@@ -1,7 +1,7 @@
#' Key drawing functions
#'
#' Each Geom has an associated function that draws the key when the geom needs
#' to be displayed in a legend. These are the options built into naniar.
#' to be displayed in a legend. These are the options built into narnia.
#'
#' @return A grid grob.
#' @param data A single row data frame containing the scaled aesthetics to
Expand Down
5 changes: 1 addition & 4 deletions R/missing_data_tidiers.R
Expand Up @@ -11,7 +11,6 @@
#'
#' @examples
#'
#' library(naniar)
#' miss_df_pct(airquality)
#'
miss_df_pct <- function(data){
Expand Down Expand Up @@ -39,8 +38,6 @@ miss_df_pct <- function(data){
#'
#' @examples
#'
#' library(naniar)
#'
#' miss_var_pct(airquality)
#'
miss_var_pct <- function(data){
Expand Down Expand Up @@ -261,7 +258,7 @@ miss_case_summary <- function(data){
} else stop("Input must inherit from data.frame", call. = FALSE)
}

#' Collate summary measures from naniar into one tibble
#' Collate summary measures from narnia into one tibble
#'
#' \code{summarise_missingness} performs all of the missing data helper summaries and puts them into a list. Perhaps in the future this can all be some sort of nested dataframe?
#'
Expand Down
6 changes: 0 additions & 6 deletions R/naniar-ggproto.R

This file was deleted.

6 changes: 6 additions & 0 deletions R/narnia-ggproto.R
@@ -0,0 +1,6 @@
#' @name narnia-ggproto
#' @title narnia-ggroto
#'
#' @description These are the stat and geom overrides using ggproto from ggplot2 that make narnia work.
#'
NULL
4 changes: 2 additions & 2 deletions R/naniar-package.R → R/narnia-package.R
@@ -1,6 +1,6 @@
#' naniar
#' narnia
#'
#' @name naniar
#' @name narnia
#' @docType package
#' @importFrom magrittr %>%
#' @import ggplot2
Expand Down
2 changes: 1 addition & 1 deletion R/stat_missing_point.R
Expand Up @@ -64,7 +64,7 @@ stat_missing_point <- function(mapping = NULL,

}

#' @rdname naniar-ggproto
#' @rdname narnia-ggproto
#' @export
StatMissingPoint <- ggproto("StatMissingPoint", Stat,
required_aes = c("x", "y"),
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Expand Up @@ -10,7 +10,7 @@
#'
#' @examples
#'
#' which_na(airquality)
#' narnia:::which_na(airquality)
#'
which_na <- function(x){
which(is.na(x), arr.ind = TRUE)
Expand Down
Binary file modified README-figs/README-facet-add-theme-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README-figs/README-facet-by-month-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README-figs/README-geom-missing-point-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified README-figs/README-geom-missing-point-alpha-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 12 additions & 12 deletions README.Rmd
Expand Up @@ -12,11 +12,11 @@ knitr::opts_chunk$set(
)
```

# naniar
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/njtierney/naniar?branch=master&svg=true)](https://ci.appveyor.com/project/njtierney/naniar) [![Travis-CI Build Status](https://travis-ci.org/njtierney/naniar.svg?branch=master)](https://travis-ci.org/njtierney/naniar)
[![Coverage Status](https://img.shields.io/codecov/c/github/njtierney/naniar/master.svg)](https://codecov.io/github/njtierney/naniar?branch=master)
# narnia
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/njtierney/narnia?branch=master&svg=true)](https://ci.appveyor.com/project/njtierney/narnia) [![Travis-CI Build Status](https://travis-ci.org/njtierney/narnia.svg?branch=master)](https://travis-ci.org/njtierney/narnia)
[![Coverage Status](https://img.shields.io/codecov/c/github/njtierney/narnia/master.svg)](https://codecov.io/github/njtierney/narnia?branch=master)

`naniar` aims to make it easy to summarise, visualise, and manipulate missing data in a tidy fashion.
`narnia` aims to make it easy to summarise, visualise, and manipulate missing data in a tidy fashion.

Currently it provides:

Expand All @@ -39,15 +39,15 @@ Currently it provides:
+ `miss_var_table()`
+ `miss_df_pct()`

For a more formal description, you can read the vignette ["building on ggplot2 for exploration of missing values"](http://www.njtierney.com/naniar/articles/missingness-building-on-ggplot2.html).
For a more formal description, you can read the vignette ["building on ggplot2 for exploration of missing values"](http://www.njtierney.com/narnia/articles/missingness-building-on-ggplot2.html).

**Why `naniar`?**
**Why `narnia`?**

`naniar` was previously named `ggmissing` and initially provided a ggplot geom and some visual summaries. It was changed to `naniar` to reflect the fact that this package is going to be bigger in scope, and is not just related to ggplot2. Specifically, the package is designed to provide a suite of tools for generating visualisations of missing values and imputations, manipulate, and summarise missing data.
`narnia` was previously named `ggmissing` and initially provided a ggplot geom and some visual summaries. It was changed to `narnia` to reflect the fact that this package is going to be bigger in scope, and is not just related to ggplot2. Specifically, the package is designed to provide a suite of tools for generating visualisations of missing values and imputations, manipulate, and summarise missing data.

> ...But _why_ `naniar`?
> ...But _why_ `narnia`?
Well, I think it is useful to think of missing values in data being like this other dimension, perhaps like Narnia - a different world, hidden away. Close, but very different. So the name, "naniar", is a play on the "Narnia" books. e.g., naniar: The Last Battle (...with missing data). Also, `NA`niar, naniar = na in r, and if you so desire, naniar may sound like "noneoya" in an nz/aussie accent. Full credit to @MilesMcbain for the name.
Well, I think it is useful to think of missing values in data being like this other dimension, perhaps like Narnia - a different world, hidden away. Close, but very different. So the name, "narnia", is a play on the "Narnia" books. e.g., narnia: The Last Battle (...with missing data). Also, `NA`niar, narnia = na in r, and if you so desire, narnia may sound like "noneoya" in an nz/aussie accent. Full credit to @MilesMcbain for the name.

Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). By participating in this project you agree to abide by its terms.

Expand Down Expand Up @@ -84,7 +84,7 @@ We can instead use the `geom_missing_point()` to display the missing data

```{r geom-missing-point}
library(naniar)
library(narnia)
ggplot(data = airquality,
aes(x = Ozone,
Expand Down Expand Up @@ -183,7 +183,7 @@ gridExtra::grid.arrange(p1, p2, ncol = 2)

# Numerical summaries for missing data

`naniar` provides numerical summaries of missing data. For variables, cases, and dataframes there are the function families `miss_var_*`, `miss_case_*`, and `miss_df_*`. To find the percent missng variables, cases, and dataframes:
`narnia` provides numerical summaries of missing data. For variables, cases, and dataframes there are the function families `miss_var_*`, `miss_case_*`, and `miss_df_*`. To find the percent missng variables, cases, and dataframes:

```{r numerical-percent-missing}
Expand Down Expand Up @@ -277,7 +277,7 @@ gg_missing_which(airquality)

# Future Work

`naniar` will be undergoing more changes over the next 6 months. The current plan is to submit it for rOpenSci onboarding by the end of January, and then to submit it to CRAN after that.
`narnia` will be undergoing more changes over the next 6 months. The current plan is to submit it for rOpenSci onboarding by the end of January, and then to submit it to CRAN after that.

Other plans to extend the `geom_missing_` family to include:

Expand Down
22 changes: 11 additions & 11 deletions README.md
@@ -1,11 +1,11 @@

<!-- README.md is generated from README.Rmd. Please edit that file -->
naniar
narnia
======

[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/njtierney/naniar?branch=master&svg=true)](https://ci.appveyor.com/project/njtierney/naniar) [![Travis-CI Build Status](https://travis-ci.org/njtierney/naniar.svg?branch=master)](https://travis-ci.org/njtierney/naniar) [![Coverage Status](https://img.shields.io/codecov/c/github/njtierney/naniar/master.svg)](https://codecov.io/github/njtierney/naniar?branch=master)
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/njtierney/narnia?branch=master&svg=true)](https://ci.appveyor.com/project/njtierney/narnia) [![Travis-CI Build Status](https://travis-ci.org/njtierney/narnia.svg?branch=master)](https://travis-ci.org/njtierney/narnia) [![Coverage Status](https://img.shields.io/codecov/c/github/njtierney/narnia/master.svg)](https://codecov.io/github/njtierney/narnia?branch=master)

`naniar` aims to make it easy to summarise, visualise, and manipulate missing data in a tidy fashion.
`narnia` aims to make it easy to summarise, visualise, and manipulate missing data in a tidy fashion.

Currently it provides:

Expand All @@ -28,15 +28,15 @@ Currently it provides:
- `miss_var_table()`
- `miss_df_pct()`

For a more formal description, you can read the vignette ["building on ggplot2 for exploration of missing values"](http://www.njtierney.com/naniar/articles/missingness-building-on-ggplot2.html).
For a more formal description, you can read the vignette ["building on ggplot2 for exploration of missing values"](http://www.njtierney.com/narnia/articles/missingness-building-on-ggplot2.html).

**Why `naniar`?**
**Why `narnia`?**

`naniar` was previously named `ggmissing` and initially provided a ggplot geom and some visual summaries. It was changed to `naniar` to reflect the fact that this package is going to be bigger in scope, and is not just related to ggplot2. Specifically, the package is designed to provide a suite of tools for generating visualisations of missing values and imputations, manipulate, and summarise missing data.
`narnia` was previously named `ggmissing` and initially provided a ggplot geom and some visual summaries. It was changed to `narnia` to reflect the fact that this package is going to be bigger in scope, and is not just related to ggplot2. Specifically, the package is designed to provide a suite of tools for generating visualisations of missing values and imputations, manipulate, and summarise missing data.

> ...But *why* `naniar`?
> ...But *why* `narnia`?
Well, I think it is useful to think of missing values in data being like this other dimension, perhaps like Narnia - a different world, hidden away. Close, but very different. So the name, "naniar", is a play on the "Narnia" books. e.g., naniar: The Last Battle (...with missing data). Also, `NA`niar, naniar = na in r, and if you so desire, naniar may sound like "noneoya" in an nz/aussie accent. Full credit to @MilesMcbain for the name.
Well, I think it is useful to think of missing values in data being like this other dimension, perhaps like Narnia - a different world, hidden away. Close, but very different. So the name, "narnia", is a play on the "Narnia" books. e.g., narnia: The Last Battle (...with missing data). Also, `NA`niar, narnia = na in r, and if you so desire, narnia may sound like "noneoya" in an nz/aussie accent. Full credit to @MilesMcbain for the name.

Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). By participating in this project you agree to abide by its terms.

Expand Down Expand Up @@ -73,7 +73,7 @@ We can instead use the `geom_missing_point()` to display the missing data

``` r

library(naniar)
library(narnia)

ggplot(data = airquality,
aes(x = Ozone,
Expand Down Expand Up @@ -195,7 +195,7 @@ gridExtra::grid.arrange(p1, p2, ncol = 2)
Numerical summaries for missing data
====================================

`naniar` provides numerical summaries of missing data. For variables, cases, and dataframes there are the function families `miss_var_*`, `miss_case_*`, and `miss_df_*`. To find the percent missng variables, cases, and dataframes:
`narnia` provides numerical summaries of missing data. For variables, cases, and dataframes there are the function families `miss_var_*`, `miss_case_*`, and `miss_df_*`. To find the percent missng variables, cases, and dataframes:

``` r

Expand Down Expand Up @@ -349,7 +349,7 @@ gg_missing_which(airquality)
Future Work
===========

`naniar` will be undergoing more changes over the next 6 months. The current plan is to submit it for rOpenSci onboarding by the end of January, and then to submit it to CRAN after that.
`narnia` will be undergoing more changes over the next 6 months. The current plan is to submit it for rOpenSci onboarding by the end of January, and then to submit it to CRAN after that.

Other plans to extend the `geom_missing_` family to include:

Expand Down
2 changes: 1 addition & 1 deletion _pkgdown.yml
@@ -1,7 +1,7 @@
home:
links:
- text: Learn more
href: https://github.com/njtierney/naniar
href: https://github.com/njtierney/narnia
reference:
- title: "Visualisation"
desc: >
Expand Down
Binary file modified docs/README-figs/README-facet-add-theme-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/README-figs/README-facet-by-month-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/README-figs/README-geom-missing-point-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/README-figs/README-geom-missing-point-alpha-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/README-figs/README-viss-miss-1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 8 additions & 6 deletions docs/articles/index.html

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

0 comments on commit 1542567

Please sign in to comment.