Browse Source

README

master
boB Rudis 5 years ago
parent
commit
a4b1fa18df
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 20
      README.Rmd
  2. 46
      README.md
  3. BIN
      README_files/figure-gfm/gm-1.png
  4. BIN
      README_files/figure-gfm/unnamed-chunk-1-1.png
  5. BIN
      README_files/figure-gfm/unnamed-chunk-2-1.png
  6. BIN
      README_files/figure-gfm/unnamed-chunk-2-2.png
  7. BIN
      README_files/figure-gfm/unnamed-chunk-2-3.png
  8. BIN
      man/figures/README-gm-1.png
  9. BIN
      man/figures/README-mam-1.png
  10. BIN
      man/figures/README-mpg-1.png
  11. BIN
      man/figures/README-mpg-2.png
  12. BIN
      man/figures/README-mpg-3.png

20
README.Rmd

@ -4,15 +4,12 @@ editor_options:
chunk_output_type: console
---
```{r pkg-knitr-opts, include=FALSE}
knitr::opts_chunk$set(
collapse = TRUE, fig.retina = 2, message = FALSE, warning = FALSE
)
options(width=120)
hrbrpkghelpr::global_opts()
```
[![Travis-CI Build Status](https://travis-ci.org/hrbrmstr/ggeconodist.svg?branch=master)](https://travis-ci.org/hrbrmstr/ggeconodist)
[![Coverage Status](https://codecov.io/gh/hrbrmstr/ggeconodist/branch/master/graph/badge.svg)](https://codecov.io/gh/hrbrmstr/ggeconodist)
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/ggeconodist)](https://cran.r-project.org/package=ggeconodist)
```{r badges, results='asis', echo=FALSE, cache=FALSE}
hrbrpkghelpr::stinking_badges()
```
# ggeconodist
@ -36,7 +33,7 @@ The following functions are implemented:
## Installation
```{r install-ex, results='asis', echo = FALSE}
```{r install-ex, results='asis', echo=FALSE, cache=FALSE}
hrbrpkghelpr::install_block()
```
@ -54,7 +51,7 @@ packageVersion("ggeconodist")
**YOU WILL NEED** to install [these fonts](https://github.com/economist-components/component-typography) to use the built-in theme. More on how to do that at some point.
```{r}
```{r mam}
ggplot(mammogram_costs, aes(x = city)) +
geom_econodist(
aes(ymin = tenth, median = median, ymax = ninetieth),
@ -76,7 +73,7 @@ left_align(gg, c("subtitle", "title", "caption")) %>%
grid.draw()
```
```{r}
```{r mpg}
library(dplyr)
library(patchwork)
library(hrbrthemes)
@ -139,5 +136,4 @@ cloc::cloc_pkg_md()
## Code of Conduct
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.
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

46
README.md

@ -1,9 +1,18 @@
[![Travis-CI Build
[![Project Status: Active – The project has reached a stable, usable
state and is being actively
developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![Signed
by](https://img.shields.io/badge/Keybase-Verified-brightgreen.svg)](https://keybase.io/hrbrmstr)
![Signed commit
%](https://img.shields.io/badge/Signed_Commits-100%25-lightgrey.svg)
[![Linux build
Status](https://travis-ci.org/hrbrmstr/ggeconodist.svg?branch=master)](https://travis-ci.org/hrbrmstr/ggeconodist)
[![Coverage
Status](https://codecov.io/gh/hrbrmstr/ggeconodist/branch/master/graph/badge.svg)](https://codecov.io/gh/hrbrmstr/ggeconodist)
[![CRAN\_Status\_Badge](https://www.r-pkg.org/badges/version/ggeconodist)](https://cran.r-project.org/package=ggeconodist)
![Minimal R
Version](https://img.shields.io/badge/R%3E%3D-3.2.0-blue.svg)
![License](https://img.shields.io/badge/License-MIT-blue.svg)
# ggeconodist
@ -37,17 +46,20 @@ The following functions are implemented:
``` r
install.packages("ggeconodist", repos = "https://cinc.rud.is")
# or
devtools::install_git("https://git.rud.is/hrbrmstr/ggeconodist.git")
remotes::install_git("https://git.rud.is/hrbrmstr/ggeconodist.git")
# or
devtools::install_git("https://git.sr.ht/~hrbrmstr/ggeconodist")
remotes::install_git("https://git.sr.ht/~hrbrmstr/ggeconodist")
# or
devtools::install_gitlab("hrbrmstr/ggeconodist")
remotes::install_gitlab("hrbrmstr/ggeconodist")
# or
devtools::install_bitbucket("hrbrmstr/ggeconodist")
remotes::install_bitbucket("hrbrmstr/ggeconodist")
# or
devtools::install_github("hrbrmstr/ggeconodist")
remotes::install_github("hrbrmstr/ggeconodist")
```
NOTE: To use the ‘remotes’ install options you will need to have the
[{remotes} package](https://github.com/r-lib/remotes) installed.
## Usage
``` r
@ -86,7 +98,7 @@ left_align(gg, c("subtitle", "title", "caption")) %>%
grid.draw()
```
<img src="README_files/figure-gfm/unnamed-chunk-1-1.png" width="672" />
<img src="man/figures/README-mam-1.png" width="672" />
``` r
library(dplyr)
@ -101,7 +113,7 @@ p <- ggplot(mpg, aes(class, hwy)) + theme_ipsum_rc()
plot_layout(ncol = 1)
```
<img src="README_files/figure-gfm/unnamed-chunk-2-1.png" width="672" />
<img src="man/figures/README-mpg-1.png" width="672" />
``` r
@ -111,7 +123,7 @@ p <- ggplot(mpg, aes(class, hwy)) + theme_ipsum_rc()
plot_layout(ncol = 1)
```
<img src="README_files/figure-gfm/unnamed-chunk-2-2.png" width="672" />
<img src="man/figures/README-mpg-2.png" width="672" />
``` r
@ -120,7 +132,7 @@ p <- ggplot(mpg, aes(class, hwy)) + theme_ipsum_rc()
plot_layout(ncol = 1)
```
<img src="README_files/figure-gfm/unnamed-chunk-2-3.png" width="672" />
<img src="man/figures/README-mpg-3.png" width="672" />
``` r
gapminder %>%
@ -155,17 +167,17 @@ gmgg %>%
grid.draw()
```
<img src="README_files/figure-gfm/gm-1.png" width="800" />
<img src="man/figures/README-gm-1.png" width="800" />
## ggeconodist Metrics
| Lang | \# Files | (%) | LoC | (%) | Blank lines | (%) | \# Lines | (%) |
| :--- | -------: | ---: | --: | ---: | ----------: | ---: | -------: | ---: |
| R | 10 | 0.91 | 398 | 0.85 | 76 | 0.72 | 128 | 0.75 |
| Rmd | 1 | 0.09 | 71 | 0.15 | 30 | 0.28 | 42 | 0.25 |
| R | 10 | 0.91 | 398 | 0.85 | 76 | 0.72 | 137 | 0.77 |
| Rmd | 1 | 0.09 | 69 | 0.15 | 30 | 0.28 | 40 | 0.23 |
## Code of Conduct
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.
Please note that this project is released with a Contributor Code of
Conduct. By participating in this project you agree to abide by its
terms.

BIN
README_files/figure-gfm/gm-1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 KiB

BIN
README_files/figure-gfm/unnamed-chunk-1-1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 KiB

BIN
README_files/figure-gfm/unnamed-chunk-2-1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

BIN
README_files/figure-gfm/unnamed-chunk-2-2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

BIN
README_files/figure-gfm/unnamed-chunk-2-3.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

BIN
man/figures/README-gm-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

BIN
man/figures/README-mam-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
man/figures/README-mpg-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
man/figures/README-mpg-2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
man/figures/README-mpg-3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Loading…
Cancel
Save