Browse Source

README

pull/25/head
Bob Rudis 9 years ago
parent
commit
6bc74c635d
  1. 3
      README.Rmd
  2. 5
      README.md

3
README.Rmd

@ -16,6 +16,7 @@ It uses ggplot2 and returns a ggplot2 object.
The following functions are implemented:
- `waffle` : make a waffle chart ggplot2 object
- `iron` : vertically stitch together multiple waffle plots, left-aligning edges (best if used with the `waffle` `pad` parameter)
- `as_rcdimple` : turn a waffle chart into a dimple.js htmlwidget
### News
@ -121,6 +122,8 @@ waffle(professional, rows=10, size=0.5, colors=c("#af9139", "#544616"))
waffle(professional, rows=10, size=0.5, colors=c("#af9139", "#544616"))
```
Iron example (left-align & padding for multiple plots)
```{r f8, fig.height=6, fig.width=7}
pain.adult.1997 <- c( `YOY (406)`=406, `Adult (24)`=24)
A <- waffle(pain.adult.1997/2, rows=7, size=0.5,

5
README.md

@ -7,6 +7,7 @@ It uses ggplot2 and returns a ggplot2 object.
The following functions are implemented:
- `waffle` : make a waffle chart ggplot2 object
- `iron` : vertically stitch together multiple waffle plots, left-aligning edges (best if used with the `waffle` `pad` parameter)
- `as_rcdimple` : turn a waffle chart into a dimple.js htmlwidget
### News
@ -106,6 +107,8 @@ waffle(professional, rows=10, size=0.5, colors=c("#af9139", "#544616"))
![](README_files/figure-markdown_github/f5-1.png)
Iron example (left-align & padding for multiple plots)
``` r
pain.adult.1997 <- c( `YOY (406)`=406, `Adult (24)`=24)
A <- waffle(pain.adult.1997/2, rows=7, size=0.5,
@ -140,7 +143,7 @@ library(testthat)
date()
```
## [1] "Thu Mar 19 19:37:11 2015"
## [1] "Thu Mar 19 19:40:07 2015"
``` r
test_dir("tests/")

Loading…
Cancel
Save