diff --git a/vignettes/articles/1_functions_demo-Rmd.Rmd b/vignettes/articles/1_functions_demo-Rmd.Rmd index 78e90d9f8..09b123832 100644 --- a/vignettes/articles/1_functions_demo-Rmd.Rmd +++ b/vignettes/articles/1_functions_demo-Rmd.Rmd @@ -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 diff --git a/vignettes/articles/2_functions_demo_dark-Rmd.Rmd b/vignettes/articles/2_functions_demo_dark-Rmd.Rmd index 3baf6ef8c..9f549ba32 100644 --- a/vignettes/articles/2_functions_demo_dark-Rmd.Rmd +++ b/vignettes/articles/2_functions_demo_dark-Rmd.Rmd @@ -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 @@ -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)) @@ -371,7 +372,8 @@ datapoly |> x = x, y = y, col = value, - group = id) + group = id, + pal = viridis::mako(9)) ``` ### gg_qq @@ -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 diff --git a/vignettes/articles/3_go_further-Rmd.Rmd b/vignettes/articles/3_go_further-Rmd.Rmd index 53699ee4b..e211aab4e 100644 --- a/vignettes/articles/3_go_further-Rmd.Rmd +++ b/vignettes/articles/3_go_further-Rmd.Rmd @@ -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() ``` diff --git a/vignettes/articles/4_extensions-Rmd.Rmd b/vignettes/articles/4_extensions-Rmd.Rmd index c1d0c57b0..095e4e25a 100644 --- a/vignettes/articles/4_extensions-Rmd.Rmd +++ b/vignettes/articles/4_extensions-Rmd.Rmd @@ -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 diff --git a/vignettes/ggblanket.Rmd b/vignettes/ggblanket.Rmd index f3f0da3cf..68c793f4e 100644 --- a/vignettes/ggblanket.Rmd +++ b/vignettes/ggblanket.Rmd @@ -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() + @@ -143,7 +142,7 @@ p1 / p2 p1 <- penguins2 |> gg_histogram( x = body_mass_g, - pal = "#0c2052") + pal = "#414D6B") p2 <- penguins2 |> gg_jitter( @@ -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) + @@ -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()