diff --git a/DESCRIPTION b/DESCRIPTION index fe3a223..073eed1 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,9 +1,9 @@ Package: numform Title: Tools to Format Numbers for Publication -Version: 0.1.1 +Version: 0.2.0 Authors@R: c(person("Tyler", "Rinker", email = "tyler.rinker@gmail.com", role = c("aut", "cre"))) Maintainer: Tyler Rinker -Description: Format numbers for publication; includes the removal of leading zeros, standardization of +Description: Format numbers and plots for publication; includes the removal of leading zeros, standardization of number of digits, addition of affixes, and a p-value formatter. These tools combine the functionality of several 'base' functions such as paste(), format(), and sprintf() into specific use case functions that are named in a way that is consistent with usage, making their diff --git a/R/numform-package.R b/R/numform-package.R index a2c4ab0..878623a 100644 --- a/R/numform-package.R +++ b/R/numform-package.R @@ -1,6 +1,6 @@ #' Tools to Format Numbers for Publication #' -#'Format numbers for publication; includes the removal of leading zeros, +#'Format numbers and plots for publication; includes the removal of leading zeros, #'standardization of number of digits, addition of affixes, and a p-value #'formatter. These tools combine the functionality of several 'base' functions #'such as \code{\link[base]{paste}}, \code{\link[base]{format}}, and diff --git a/README.Rmd b/README.Rmd index c383c89..ea96440 100644 --- a/README.Rmd +++ b/README.Rmd @@ -35,7 +35,7 @@ knitr::opts_chunk$set(fig.path = "tools/figure/", warning = FALSE) [![Coverage Status](https://coveralls.io/repos/trinker/numform/badge.svg?branch=master)](https://coveralls.io/r/trinker/numform?branch=master) `r verbadge` -**numform** contains tools to assist in the formatting of numbers for publication. Tools include the removal of leading zeros, standardization of number of digits, addition of affixes, and a p-value formatter. These tools combine the functionality of several 'base' functions such as `paste()`, `format()`, and `sprintf()` into specific use case functions that are named in a way that is consistent with usage, making their names easy to remember and easy to deploy. +**numform** contains tools to assist in the formatting of numbers and plots for publication. Tools include the removal of leading zeros, standardization of number of digits, addition of affixes, and a p-value formatter. These tools combine the functionality of several 'base' functions such as `paste()`, `format()`, and `sprintf()` into specific use case functions that are named in a way that is consistent with usage, making their names easy to remember and easy to deploy. # Installation diff --git a/README.md b/README.md index 74b659f..4f4564c 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,13 @@ Status](https://travis-ci.org/trinker/numform.svg?branch=master)](https://travis [![Coverage Status](https://coveralls.io/repos/trinker/numform/badge.svg?branch=master)](https://coveralls.io/r/trinker/numform?branch=master) -**numform** contains tools to assist in the formatting of numbers for -publication. Tools include the removal of leading zeros, standardization -of number of digits, addition of affixes, and a p-value formatter. These -tools combine the functionality of several 'base' functions such as -`paste()`, `format()`, and `sprintf()` into specific use case functions -that are named in a way that is consistent with usage, making their -names easy to remember and easy to deploy. +**numform** contains tools to assist in the formatting of numbers and +plots for publication. Tools include the removal of leading zeros, +standardization of number of digits, addition of affixes, and a p-value +formatter. These tools combine the functionality of several 'base' +functions such as `paste()`, `format()`, and `sprintf()` into specific +use case functions that are named in a way that is consistent with +usage, making their names easy to remember and easy to deploy. Installation ============ @@ -72,7 +72,7 @@ instead. This is useful for passing in to **ggplot2** `scale_x/y_type` functions (see [Plotting](#plotting) for usage). - +
@@ -545,7 +545,7 @@ Plotting ## 10 498559.2 1999-12-26 Site 2 $499000 499K $499K D ## # ... with 9,990 more rows, and 1 more variables: abb_week -![](tools/figure/unnamed-chunk-23-1.png) +![](tools/figure/unnamed-chunk-13-1.png) library(tidyverse); library(gridExtra) @@ -619,7 +619,7 @@ Plotting ) -![](tools/figure/unnamed-chunk-24-1.png) +![](tools/figure/unnamed-chunk-14-1.png) Modeling -------- diff --git a/inst/CITATION b/inst/CITATION index 8a66e57..423900c 100644 --- a/inst/CITATION +++ b/inst/CITATION @@ -2,13 +2,13 @@ citHeader("To cite numform in publications, please use:") citEntry(entry = "manual", - title = "{numform}: A publication style number formatter", + title = "{numform}: A publication style number and plot formatter", author = "Tyler W. Rinker", - note = "version 0.1.1", + note = "version 0.2.0", year = "2015", url = "http://github.com/trinker/numform", textVersion = paste("Rinker, T. W. (2015).", - "numform A publication style number formatte", - "version 0.1.1.", + "numform A publication style number and plot formatter", + "version 0.2.0.", "http://github.com/trinker/numform") ) diff --git a/man/numform.Rd b/man/numform.Rd index afd252d..2fbbf63 100644 --- a/man/numform.Rd +++ b/man/numform.Rd @@ -7,7 +7,7 @@ \alias{numform-package} \title{Tools to Format Numbers for Publication} \description{ -Format numbers for publication; includes the removal of leading zeros, +Format numbers and plots for publication; includes the removal of leading zeros, standardization of number of digits, addition of affixes, and a p-value formatter. These tools combine the functionality of several 'base' functions such as \code{\link[base]{paste}}, \code{\link[base]{format}}, and diff --git a/tools/figure/unnamed-chunk-13-1.png b/tools/figure/unnamed-chunk-13-1.png index 45c8c14..d1c6dcf 100644 Binary files a/tools/figure/unnamed-chunk-13-1.png and b/tools/figure/unnamed-chunk-13-1.png differ diff --git a/tools/figure/unnamed-chunk-14-1.png b/tools/figure/unnamed-chunk-14-1.png index 45c8c14..586c31f 100644 Binary files a/tools/figure/unnamed-chunk-14-1.png and b/tools/figure/unnamed-chunk-14-1.png differ