Browse Source

README

pull/6/head
Bob Rudis 8 years ago
parent
commit
7731f3ed9b
  1. 2
      .Rbuildignore
  2. 4
      NEWS
  3. 2
      R/ggalt-package.r
  4. 22
      README.Rmd
  5. 35
      README.html
  6. 30
      README.md
  7. BIN
      README_figs/README-stateface-1.png
  8. 2
      man/ggalt.Rd

2
.Rbuildignore

@ -4,6 +4,6 @@
^README-.*\.png$
^\.travis\.yml$
^CONDUCT\.md$
^README\.md$
^README\.Rmd$
^README_figs
^README\.html$

4
NEWS

@ -1,3 +1,7 @@
0.2.0
=====================
* Incorporated ProPublica StateFace font
0.1.5
=====================
* Pokemon discrete color scales!

2
R/ggalt-package.r

@ -1,4 +1,4 @@
#' Extra Geoms, Stats and Coords for 'ggplot2'
#' Extra Geoms, Stats, Coords, Scales & Fonts for 'ggplot2'
#'
#' A package containing additional geoms, coords, stats, scales & fonts
#' for ggplot2 2.0+

22
README.Rmd

@ -190,7 +190,7 @@ m + stat_bkde2d(bandwidth=c(0.5, 4), aes(fill = ..level..), geom = "polygon")
```
### `coord_proj` LIVES! (still needs work)
### `coord_proj` LIVES! (still needs a teensy bit of work)
```{r coord_proj}
world <- map_data("world")
@ -203,6 +203,26 @@ gg <- gg + coord_proj("+proj=wintri")
gg
```
### ProPublica StateFace
```{r stateface}
# Run show_stateface() to see the location of the TTF StateFace font
# You need to install it for it to work
set.seed(1492)
dat <- data.frame(state=state.abb,
x=sample(100, 50),
y=sample(100, 50),
col=sample(c("#b2182b", "#2166ac"), 50, replace=TRUE),
sz=sample(6:15, 50, replace=TRUE),
stringsAsFactors=FALSE)
gg <- ggplot(dat, aes(x=x, y=y))
gg <- gg + geom_stateface(aes(label=state, color=col, size=sz))
gg <- gg + scale_color_identity()
gg <- gg + scale_size_identity()
gg
```
### Code of Conduct
Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md).

35
README.html

File diff suppressed because one or more lines are too long

30
README.md

@ -25,12 +25,13 @@ The following functions are implemented:
- `stat_ash` : Compute and display a univariate averaged shifted histogram (polynomial kernel) (uses `ash::ash1`/`ash::bin1`)
- `scale_color_pokemon` :
- `scale_fill_pokemon` : discrete pokemon scales (data taken from the hard work by the <http://www.pokegraphs.com/>)
- `byte_format`: + helpers. e.g. turn `10000` into `10 Kb`
### News
- Version 0.1.5.9000 - Pokemon discrete color scales!
- Version 0.1.2.9000 - Fixed bug with limits not working thx to @mstrimas
- Version 0.1.2.9000 - Fixed bug with limits not working in coord_proj thx to @mstrimas
- Version 0.1.1 - CRAN!
- Version 0.1.0.9000 - Tweaks for ggplot2 2.0 release
- Version 0.0.4.9000 - `stat_ash`
@ -61,7 +62,7 @@ library(ggalt)
# current verison
packageVersion("ggalt")
#> [1] '0.1.5.9000'
#> [1] '0.2.0.9000'
set.seed(1492)
dat <- data.frame(x=c(1:10, 1:10, 1:10),
@ -269,7 +270,7 @@ m + stat_bkde2d(bandwidth=c(0.5, 4), aes(fill = ..level..), geom = "polygon")
<img src="README_figs/README-bkde2d-2.png" title="" alt="" width="672" />
### `coord_proj` LIVES! (still needs work)
### `coord_proj` LIVES! (still needs a teensy bit of work)
```r
@ -289,6 +290,29 @@ gg
<img src="README_figs/README-coord_proj-1.png" title="" alt="" width="672" />
### ProPublica StateFace
```r
# Run show_stateface() to see the location of the TTF StateFace font
# You need to install it for it to work
set.seed(1492)
dat <- data.frame(state=state.abb,
x=sample(100, 50),
y=sample(100, 50),
col=sample(c("#b2182b", "#2166ac"), 50, replace=TRUE),
sz=sample(6:15, 50, replace=TRUE),
stringsAsFactors=FALSE)
gg <- ggplot(dat, aes(x=x, y=y))
gg <- gg + geom_stateface(aes(label=state, color=col, size=sz))
gg <- gg + scale_color_identity()
gg <- gg + scale_size_identity()
gg
```
<img src="README_figs/README-stateface-1.png" title="" alt="" width="672" />
### Code of Conduct
Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md).

BIN
README_figs/README-stateface-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

2
man/ggalt.Rd

@ -4,7 +4,7 @@
\name{ggalt}
\alias{ggalt}
\alias{ggalt-package}
\title{Extra Geoms, Stats and Coords for 'ggplot2'}
\title{Extra Geoms, Stats, Coords, Scales & Fonts for 'ggplot2'}
\description{
A package containing additional geoms, coords, stats, scales & fonts
for ggplot2 2.0+

Loading…
Cancel
Save