Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ Full citation:

> `r dataset$citation`

Vertical stack plot:

```{r geodata}
# visualize the data with ggstackplot
dataset$data |>
Expand Down Expand Up @@ -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() +
Expand Down
37 changes: 6 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ Full citation:
> TUNU2013 ice-core samples between 740-765 CE \[dataset\]. PANGAEA,
> <https://doi.org/10.1594/PANGAEA.967047>

Vertical stack plot:

``` r
# visualize the data with ggstackplot
dataset$data |>
Expand Down Expand Up @@ -139,10 +141,13 @@ Full citation:
> analyzed and processed at University of Colorado Boulder \[dataset\].
> PANGAEA, <https://doi.org/10.1594/PANGAEA.933277>

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() +
Expand All @@ -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()`).
```

<img src="man/figures/README-geodata-horizontal-1.png" width="100%" />
Expand All @@ -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()`).
```

<img src="man/figures/README-geodata-horizontal-2-1.png" width="100%" />
Expand Down
Binary file modified man/figures/README-geodata-horizontal-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-geodata-horizontal-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.
Loading