Browse Source

README

pull/15/head
boB Rudis 8 years ago
parent
commit
c48b773b26
  1. 8
      README.Rmd
  2. 481
      README.html
  3. 37
      README.md

8
README.Rmd

@ -1,9 +1,5 @@
---
output:
html_document:
keep_md: true
md_document:
variant: markdown_github
output: rmarkdown::github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
@ -291,7 +287,7 @@ gg <- gg + theme(plot.caption=element_text(size=8, margin=margin(t=10)))
gg
```
```{r dumbbell}
```{r dumbbell, message=FALSE}
library(dplyr)
library(tidyr)
library(scales)

481
README.html

File diff suppressed because one or more lines are too long

37
README.md

@ -1,11 +1,6 @@
<!-- README.md is generated from README.Rmd. Please edit that file -->
[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/0.1.0/active.svg)](http://www.repostatus.org/#active)
[![Travis-CI Build Status](https://travis-ci.org/hrbrmstr/ggalt.svg?branch=master)](https://travis-ci.org/hrbrmstr/ggalt)
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/ggalt)](http://cran.r-project.org/web/packages/ggalt)
![downloads](http://cranlogs.r-pkg.org/badges/grand-total/ggalt)
[![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/0.1.0/active.svg)](http://www.repostatus.org/#active) [![Travis-CI Build Status](https://travis-ci.org/hrbrmstr/ggalt.svg?branch=master)](https://travis-ci.org/hrbrmstr/ggalt) [![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/ggalt)](http://cran.r-project.org/web/packages/ggalt) ![downloads](http://cranlogs.r-pkg.org/badges/grand-total/ggalt)
`ggalt` : Extra Coordinate Systems, Geoms, Statistical Transformations, Scales & Fonts for 'ggplot2'
@ -16,13 +11,10 @@ The following functions are implemented:
- `coord_proj` : Like `coord_map`, only better 😜
- `geom_xspline` : Connect control points/observations with an X-spline
- `stat_xspline` : Connect control points/observations with an X-spline
- `geom_bkde` : Display a smooth density estimate (uses `KernSmooth::bkde`)
-- `geom_stateface`: Use ProPublica's StateFace font in ggplot2 plots- `stat_bkde` : Display a smooth density estimate (uses `KernSmooth::bkde`)
- `geom_bkde` : Display a smooth density estimate (uses `KernSmooth::bkde`) -- `geom_stateface`: Use ProPublica's StateFace font in ggplot2 plots- `stat_bkde` : Display a smooth density estimate (uses `KernSmooth::bkde`)
- `geom_bkde2d` : Contours from a 2d density estimate. (uses `KernSmooth::bkde2D`)
- `stat_bkde2d` : Contours from a 2d density estimate. (uses `KernSmooth::bkde2D`)
- `stat_ash` : Compute and display a univariate averaged shifted histogram (polynomial kernel) (uses `ash::ash1`/`ash::bin1`)
-- `geom_encircle`: Automatically enclose points in a polygon
`scale_color_pokemon` :
- `stat_ash` : Compute and display a univariate averaged shifted histogram (polynomial kernel) (uses `ash::ash1`/`ash::bin1`) -- `geom_encircle`: Automatically enclose points in a polygon `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`
- `geom_lollipop()`: Dead easy lollipops (horizontal or vertical)
@ -30,7 +22,6 @@ The following functions are implemented:
### Installation
``` r
# you'll want to see the vignettes, trust me
install.packages("ggplot2")
@ -38,11 +29,8 @@ install.packages("ggalt")
# OR: devtools::install_github("hrbrmstr/ggalt")
```
### Usage
``` r
library(ggplot2)
library(gridExtra)
@ -61,7 +49,6 @@ dat <- data.frame(x=c(1:10, 1:10, 1:10),
### Splines!
``` r
ggplot(dat, aes(x, y, group=group, color=group)) +
geom_point() +
@ -142,7 +129,6 @@ ggplot(dat, aes(x, y, group=group, color=factor(group))) +
#### Alternate (better) density plots
``` r
# bkde
@ -239,7 +225,6 @@ ggplot(dat, aes(x)) +
### Alternate 2D density plots
``` r
m <- ggplot(faithful, aes(x = eruptions, y = waiting)) +
geom_point() +
@ -260,7 +245,6 @@ m + stat_bkde2d(bandwidth=c(0.5, 4), aes(fill = ..level..), geom = "polygon")
### `coord_proj` LIVES! (still needs a teensy bit of work)
``` r
world <- map_data("world")
#>
@ -280,7 +264,6 @@ gg
### ProPublica StateFace
``` r
# Run show_stateface() to see the location of the TTF StateFace font
# You need to install it for it to work
@ -303,7 +286,6 @@ gg
### Encircling points automagically
``` r
d <- data.frame(x=c(1,1,2),y=c(1,2,2)*100)
@ -366,7 +348,6 @@ gg + geom_encircle(data=ss, colour="blue", s_shape=0.9, expand=0.07) +
### Lollipop charts
``` r
df <- read.csv(text="category,pct
Other,0.09
@ -417,17 +398,8 @@ gg
<img src="README_figs/README-lollipop-1.png" width="672" />
``` r
library(dplyr)
#>
#> Attaching package: 'dplyr'
#> The following objects are masked from 'package:stats':
#>
#> filter, lag
#> The following objects are masked from 'package:base':
#>
#> intersect, setdiff, setequal, union
library(tidyr)
library(scales)
library(ggplot2)
@ -470,5 +442,4 @@ gg
### 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](CONDUCT.md). By participating in this project you agree to abide by its terms.

Loading…
Cancel
Save