diff --git a/README.Rmd b/README.Rmd index 697a7f1..5c49c4f 100644 --- a/README.Rmd +++ b/README.Rmd @@ -82,6 +82,8 @@ Full citation: > `r dataset$citation` +Vertical stack plot: + ```{r geodata} # visualize the data with ggstackplot dataset$data |> @@ -116,10 +118,13 @@ Full citation: > `r dataset2$citation` +Horizontal stack plot: + ```{r "geodata-horizontal", message = FALSE} library(dplyr) library(ggplot2) -# provide a different base plot with shared graphics elements among all plots + +# use a custom template for this plot my_template <- # it's a ggplot ggplot() + diff --git a/README.md b/README.md index 88dc7b5..099bb37 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,8 @@ Full citation: > TUNU2013 ice-core samples between 740-765 CE \[dataset\]. PANGAEA, > +Vertical stack plot: + ``` r # visualize the data with ggstackplot dataset$data |> @@ -139,10 +141,13 @@ Full citation: > analyzed and processed at University of Colorado Boulder \[dataset\]. > PANGAEA, +Horizontal stack plot: + ``` r library(dplyr) library(ggplot2) -# provide a different base plot with shared graphics elements among all plots + +# use a custom template for this plot my_template <- # it's a ggplot ggplot() + @@ -167,21 +172,6 @@ dataset2$data |> overlap = 1, template = my_template ) -#> Warning: There were 4 warnings in `dplyr::mutate()`. -#> The first warning was: -#> ℹ In argument: `gtable = map(.data$plot_w_theme, ggplot2::ggplotGrob)`. -#> Caused by warning: -#> ! Removed 63 rows containing missing values or values outside the scale range -#> (`geom_point()`). -#> ℹ Run `dplyr::last_dplyr_warnings()` to see the 3 remaining warnings. -#> Warning: Removed 63 rows containing missing values or values outside the scale range -#> (`geom_point()`). -#> Warning: Removed 63 rows containing missing values or values outside the scale range -#> (`geom_path()`). -#> Warning: Removed 63 rows containing missing values or values outside the scale range -#> (`geom_point()`). -#> Warning: Removed 63 rows containing missing values or values outside the scale range -#> (`geom_path()`). ``` @@ -205,21 +195,6 @@ dataset2$data |> both_axes = TRUE, template = my_template ) -#> Warning: There were 4 warnings in `dplyr::mutate()`. -#> The first warning was: -#> ℹ In argument: `gtable = map(.data$plot_w_theme, ggplot2::ggplotGrob)`. -#> Caused by warning: -#> ! Removed 63 rows containing missing values or values outside the scale range -#> (`geom_point()`). -#> ℹ Run `dplyr::last_dplyr_warnings()` to see the 3 remaining warnings. -#> Warning: Removed 63 rows containing missing values or values outside the scale range -#> (`geom_point()`). -#> Warning: Removed 63 rows containing missing values or values outside the scale range -#> (`geom_path()`). -#> Warning: Removed 63 rows containing missing values or values outside the scale range -#> (`geom_point()`). -#> Warning: Removed 63 rows containing missing values or values outside the scale range -#> (`geom_path()`). ``` diff --git a/man/figures/README-geodata-horizontal-1.png b/man/figures/README-geodata-horizontal-1.png index 08c5709..9dc84db 100644 Binary files a/man/figures/README-geodata-horizontal-1.png and b/man/figures/README-geodata-horizontal-1.png differ diff --git a/man/figures/README-geodata-horizontal-2-1.png b/man/figures/README-geodata-horizontal-2-1.png index bf8e361..965ce03 100644 Binary files a/man/figures/README-geodata-horizontal-2-1.png and b/man/figures/README-geodata-horizontal-2-1.png differ