Skip to content

Commit

Permalink
Fix README examples and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhodge931 committed Mar 6, 2023
1 parent 04830ef commit 286730e
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 19 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: ggblanket
Title: Simplify 'ggplot2' Visualisation
Version: 1.6.3.9999
Version: 1.7.0
Authors@R: c(
person("David", "Hodge", email = "davidhodge931@gmail.com",
role = c("aut", "cre"), comment = c(ORCID = "0000-0002-3868-7501")),
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ggblanket 1.6.3.9999
# ggblanket 1.7.0

* Updated `gg_theme` default axis-line and gridline thickness.
* Supported named `pal` vectors.
Expand Down
18 changes: 11 additions & 7 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -59,22 +59,26 @@ library(dplyr)
library(stringr)
library(palmerpenguins)
iris |>
mutate(Species = str_to_sentence(Species)) |>
penguins |>
gg_point(
x = Sepal.Width,
y = Sepal.Length,
col = Species)
x = flipper_length_mm,
y = body_mass_g,
col = sex,
facet = species,
col_labels = stringr::str_to_sentence,
pal = c("#1B9E77", "#9E361B")
)
```
<br>
<br>
```{r}
penguins |>
mutate(sex = str_to_sentence(sex)) |>
gg_histogram(
tidyr::drop_na() |>
gg_density(
x = flipper_length_mm,
col = sex,
facet = species,
col_labels = stringr::str_to_sentence,
pal = c("#1B9E77", "#9E361B"))
```

Expand Down
24 changes: 14 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ The primary objective is to **simplify ggplot2 visualisation**.

Secondary objectives relate to:

- Scope: cover the most useful 80% of what ggplot2 does
- Design: produce well-designed visualisation by default
- Alignment: use conventions generally aligned with ggplot2.
- Scope: cover the most useful 80% of what ggplot2 does
- Design: produce well-designed visualisation by default
- Alignment: use conventions generally aligned with ggplot2.

It is intended to be useful for all levels of experience from beginner
to expert.
Expand All @@ -53,24 +53,28 @@ library(dplyr)
library(stringr)
library(palmerpenguins)

iris |>
mutate(Species = str_to_sentence(Species)) |>
penguins |>
gg_point(
x = Sepal.Width,
y = Sepal.Length,
col = Species)
x = flipper_length_mm,
y = body_mass_g,
col = sex,
facet = species,
col_labels = stringr::str_to_sentence,
pal = c("#1B9E77", "#9E361B")
)
```

<img src="man/figures/README-unnamed-chunk-2-1.png" width="75%" /> <br>
<br>

``` r
penguins |>
mutate(sex = str_to_sentence(sex)) |>
gg_histogram(
tidyr::drop_na() |>
gg_density(
x = flipper_length_mm,
col = sex,
facet = species,
col_labels = stringr::str_to_sentence,
pal = c("#1B9E77", "#9E361B"))
```

Expand Down
Binary file modified man/figures/README-unnamed-chunk-2-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-unnamed-chunk-3-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 286730e

Please sign in to comment.