Browse Source

update readme file to include examples from anno_ticks

pull/40/head
Jonathan Sidi 5 years ago
parent
commit
807d3a0f34
  1. 1
      README.Rmd
  2. 32
      README.md
  3. BIN
      README_figs/README-annoticks-1.png
  4. BIN
      README_figs/README-annoticks-2.png
  5. BIN
      README_figs/README-annoticks-3.png
  6. BIN
      README_figs/README-dumbbell2-1.png
  7. BIN
      README_figs/README-horizon-1.png

1
README.Rmd

@ -34,6 +34,7 @@ The following functions are implemented:
- `geom_lollipop()`: Dead easy lollipops (horizontal or vertical)
- `geom_dumbbell()` : Dead easy dumbbell plots
- `stat_stepribbon()` : Step ribbons
- `annotation_ticks()` : Add minor ticks to identity, exp(1) and exp(10) axis scales independently of each other.
- plotly integration for a few of the ^^ geoms
### Installation

32
README.md

@ -23,6 +23,7 @@ The following functions are implemented:
- `geom_lollipop()`: Dead easy lollipops (horizontal or vertical)
- `geom_dumbbell()` : Dead easy dumbbell plots
- `stat_stepribbon()` : Step ribbons
- `annotation_ticks()` : Add minor ticks to identity, exp(1) and exp(10) axis scales independently of each other.
- plotly integration for a few of the ^^ geoms
### Installation
@ -552,6 +553,37 @@ ggplot(df, aes(y=trt, x=l, xend=r)) +
<img src="README_figs/README-dumbbell2-1.png" width="672" />
``` r
p <- ggplot(msleep, aes(bodywt, brainwt)) + geom_point()
# add identity scale minor ticks on y axis
p + annotation_ticks(sides = 'l')
## Warning: Removed 27 rows containing missing values (geom_point).
```
<img src="README_figs/README-annoticks-1.png" width="672" />
``` r
# add identity scale minor ticks on x,y axis
p + annotation_ticks(sides = 'lb')
## Warning: Removed 27 rows containing missing values (geom_point).
```
<img src="README_figs/README-annoticks-2.png" width="672" />
``` r
# log10 scale
p1 <- p + scale_x_log10()
# add minor ticks on both scales
p1 + annotation_ticks(sides = 'lb', scale = c('identity','log10'))
## Warning: Removed 27 rows containing missing values (geom_point).
```
<img src="README_figs/README-annoticks-3.png" width="672" />
### 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.

BIN
README_figs/README-annoticks-1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
README_figs/README-annoticks-2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
README_figs/README-annoticks-3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
README_figs/README-dumbbell2-1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 35 KiB

BIN
README_figs/README-horizon-1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 791 KiB

After

Width:  |  Height:  |  Size: 798 KiB

Loading…
Cancel
Save