Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhodge931 committed Nov 8, 2023
1 parent 57c0884 commit 19de455
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
6 changes: 3 additions & 3 deletions vignettes/articles/1_functions_demo-Rmd.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ economics |>
```{r }
penguins2 |>
gg_bar(
x = sex,
x = species,
col = sex,
facet = species,
width = 0.66)
width = 0.6,
position = "dodge")
```

### gg_bin_2d
Expand Down
13 changes: 8 additions & 5 deletions vignettes/articles/2_functions_demo_dark-Rmd.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ economics |>
```{r }
penguins2 |>
gg_bar(
x = sex,
x = species,
col = sex,
facet = species,
width = 0.66)
width = 0.6,
position = "dodge")
```

### gg_bin_2d
Expand Down Expand Up @@ -248,6 +248,7 @@ penguins2 |>
x = species,
y = body_mass_g,
col = flipper_length_mm,
pal = viridis::mako(9),
col_continuous = "steps",
y_include = 0,
position = position_jitter(height = 0))
Expand Down Expand Up @@ -371,7 +372,8 @@ datapoly |>
x = x,
y = y,
col = value,
group = id)
group = id,
pal = viridis::mako(9))
```

### gg_qq
Expand Down Expand Up @@ -504,7 +506,8 @@ penguins2 |>
gg_tile(
x = sex,
y = species,
col = flipper_length_mm)
col = flipper_length_mm,
pal = viridis::mako(9))
```

### gg_violin
Expand Down
5 changes: 2 additions & 3 deletions vignettes/articles/3_go_further-Rmd.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,8 @@ As ggblanket wraps the `ggplot2::geom_sf` and `ggplot2::geom_raster` functions,

```{r, fig.asp=0.33}
sf::st_read(system.file("shape/nc.shp", package = "sf"),
quiet = TRUE) |>
gg_sf(col = AREA,
pal = viridis::viridis(9)) +
quiet = TRUE) |>
gg_sf(col = AREA) +
ggeasy::easy_remove_axes()
```

Expand Down
4 changes: 3 additions & 1 deletion vignettes/articles/4_extensions-Rmd.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ ggplot2::economics |>
y = unemploy,
alpha = 0.25,
y_title = "Unemployment") +
ggforce::geom_bspline(n = 1000, colour = "steelblue4")
ggforce::geom_bspline(n = 1000,
linewidth = 0.75,
colour = "steelblue4")
```

#### ggh4x
Expand Down
9 changes: 4 additions & 5 deletions vignettes/ggblanket.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ The `pal` argument is used to customise the colours of the geom. A user can prov
p1 <- penguins2 |>
ggplot() +
geom_histogram(aes(x = body_mass_g),
fill = scales::alpha("#0c2052", 0.9),
colour = "#0c2052")
fill = "#414D6B")
p2 <- penguins2 |>
ggplot() +
Expand All @@ -143,7 +142,7 @@ p1 / p2
p1 <- penguins2 |>
gg_histogram(
x = body_mass_g,
pal = "#0c2052")
pal = "#414D6B")
p2 <- penguins2 |>
gg_jitter(
Expand Down Expand Up @@ -474,7 +473,7 @@ p1 <- d |>
y_include = c(0, max(d$upper)),
y_labels = \(x) x / 1000,
y_title = "Body mass kg",
col_legend_place = "b") +
col_legend_place = "n") +
geom_errorbar(aes(ymin = lower, ymax = upper),
colour = "black",
width = 0.1) +
Expand All @@ -491,7 +490,7 @@ p2 <- d |>
y_include = c(0, max(d$upper)),
y_labels = \(x) x / 1000,
y_title = "Body mass kg",
col_legend_place = "b") +
col_legend_place = "n") +
geom_errorbar(aes(ymin = lower, ymax = upper),
width = 0.1) +
coord_flip()
Expand Down

0 comments on commit 19de455

Please sign in to comment.