Przeglądaj źródła

Final Readme tweaks

pull/1/head
Garrick Aden-Buie 8 lat temu
rodzic
commit
2879fce118
10 zmienionych plików z 21 dodań i 16 usunięć
  1. +7
    -7
      Readme.Rmd
  2. +14
    -9
      Readme.md
  3. BIN
      Readme_files/figure-gfm/plot-bar-chart-painted.png
  4. BIN
      Readme_files/figure-gfm/plot-demo-3.png
  5. BIN
      Readme_files/figure-gfm/plot-demo-4.png
  6. BIN
      Readme_files/figure-gfm/plot-demo-5.png
  7. BIN
      Readme_files/figure-gfm/plot-demo-painted.png
  8. BIN
      Readme_files/figure-gfm/plot-density-demo-painted.png
  9. BIN
      Readme_files/figure-gfm/plot-full-bar-stack-painted.png
  10. BIN
      Readme_files/figure-gfm/plot-ridges-painted.png

+ 7
- 7
Readme.Rmd Wyświetl plik

@@ -33,6 +33,8 @@ This package provides a ggplot2 theme inspired by the [USDA Pomological Watercol

## Installation

This package isn't on CRAN, so you'll need to use the devtools package to install it.

```r
# If you don't have devtools installed
install.packages("devtools")
@@ -94,7 +96,7 @@ In the future, I might revisit this package to

## Demo!

We'll need dplyr and ggplot2 (loaded with **ggpomological**)
We'll need ggplot2 (loaded with **ggpomological**) and dplyr

```r
library(ggpomological)
@@ -113,20 +115,18 @@ basic_iris_plot <- ggplot(iris) +
basic_iris_plot

# With pomological colors
basic_iris_plot <- basic_iris_plot +
scale_color_pomological()
basic_iris_plot <- basic_iris_plot + scale_color_pomological()
basic_iris_plot

# With pomological theme
pomological_iris <- basic_iris_plot + theme_pomological()
pomological_iris

# With transparent background
basic_iris_plot +
theme_pomological_nobg()
basic_iris_plot + theme_pomological_nobg()

# Or with "plain" pomological
basic_iris_plot +
theme_pomological_plain()
basic_iris_plot + theme_pomological_plain()

# Painted!
paint_pomological(pomological_iris, res = 110) %>%

+ 14
- 9
Readme.md Wyświetl plik

@@ -19,6 +19,9 @@ parameterized RMarkdown](https://youtu.be/Ol1FjFR2IMU?t=5h21m15s) at

## Installation

This package isn’t on CRAN, so you’ll need to use the devtools package
to install it.

``` r
# If you don't have devtools installed
install.packages("devtools")
@@ -98,7 +101,7 @@ texture overlay.

## Demo\!

We’ll need dplyr and ggplot2 (loaded with **ggpomological**)
We’ll need ggplot2 (loaded with **ggpomological**) and dplyr

``` r
library(ggpomological)
@@ -121,8 +124,7 @@ basic_iris_plot

``` r
# With pomological colors
basic_iris_plot <- basic_iris_plot +
scale_color_pomological()
basic_iris_plot <- basic_iris_plot + scale_color_pomological()
basic_iris_plot
```

@@ -131,21 +133,24 @@ basic_iris_plot
``` r
# With pomological theme
pomological_iris <- basic_iris_plot + theme_pomological()
pomological_iris
```

![](Readme_files/figure-gfm/plot-demo-3.png)<!-- -->

``` r
# With transparent background
basic_iris_plot +
theme_pomological_nobg()
basic_iris_plot + theme_pomological_nobg()
```

![](Readme_files/figure-gfm/plot-demo-3.png)<!-- -->
![](Readme_files/figure-gfm/plot-demo-4.png)<!-- -->

``` r
# Or with "plain" pomological
basic_iris_plot +
theme_pomological_plain()
basic_iris_plot + theme_pomological_plain()
```

![](Readme_files/figure-gfm/plot-demo-4.png)<!-- -->
![](Readme_files/figure-gfm/plot-demo-5.png)<!-- -->

``` r
# Painted!

BIN
Readme_files/figure-gfm/plot-bar-chart-painted.png Wyświetl plik

Before After
Width: 800  |  Height: 500  |  Size: 531KB Width: 800  |  Height: 500  |  Size: 531KB

BIN
Readme_files/figure-gfm/plot-demo-3.png Wyświetl plik

Before After
Width: 768  |  Height: 480  |  Size: 53KB Width: 768  |  Height: 480  |  Size: 53KB

BIN
Readme_files/figure-gfm/plot-demo-4.png Wyświetl plik

Before After
Width: 768  |  Height: 480  |  Size: 43KB Width: 768  |  Height: 480  |  Size: 53KB

BIN
Readme_files/figure-gfm/plot-demo-5.png Wyświetl plik

Before After
Width: 768  |  Height: 480  |  Size: 43KB

BIN
Readme_files/figure-gfm/plot-demo-painted.png Wyświetl plik

Before After
Width: 800  |  Height: 500  |  Size: 534KB Width: 800  |  Height: 500  |  Size: 534KB

BIN
Readme_files/figure-gfm/plot-density-demo-painted.png Wyświetl plik

Before After
Width: 800  |  Height: 500  |  Size: 515KB Width: 800  |  Height: 500  |  Size: 515KB

BIN
Readme_files/figure-gfm/plot-full-bar-stack-painted.png Wyświetl plik

Before After
Width: 800  |  Height: 500  |  Size: 509KB Width: 800  |  Height: 500  |  Size: 509KB

BIN
Readme_files/figure-gfm/plot-ridges-painted.png Wyświetl plik

Before After
Width: 800  |  Height: 500  |  Size: 528KB Width: 800  |  Height: 500  |  Size: 528KB

Ładowanie…
Anuluj
Zapisz