@@ -91,6 +91,8 @@ Full citation:
9191> TUNU2013 ice-core samples between 740-765 CE \[ dataset\] . PANGAEA,
9292> < https://doi.org/10.1594/PANGAEA.967047 >
9393
94+ Vertical stack plot:
95+
9496``` r
9597# visualize the data with ggstackplot
9698dataset $ data | >
@@ -139,10 +141,13 @@ Full citation:
139141> analyzed and processed at University of Colorado Boulder \[ dataset\] .
140142> PANGAEA, < https://doi.org/10.1594/PANGAEA.933277 >
141143
144+ Horizontal stack plot:
145+
142146``` r
143147library(dplyr )
144148library(ggplot2 )
145- # provide a different base plot with shared graphics elements among all plots
149+
150+ # use a custom template for this plot
146151my_template <-
147152 # it's a ggplot
148153 ggplot() +
@@ -167,21 +172,6 @@ dataset2$data |>
167172 overlap = 1 ,
168173 template = my_template
169174 )
170- # > Warning: There were 4 warnings in `dplyr::mutate()`.
171- # > The first warning was:
172- # > ℹ In argument: `gtable = map(.data$plot_w_theme, ggplot2::ggplotGrob)`.
173- # > Caused by warning:
174- # > ! Removed 63 rows containing missing values or values outside the scale range
175- # > (`geom_point()`).
176- # > ℹ Run `dplyr::last_dplyr_warnings()` to see the 3 remaining warnings.
177- # > Warning: Removed 63 rows containing missing values or values outside the scale range
178- # > (`geom_point()`).
179- # > Warning: Removed 63 rows containing missing values or values outside the scale range
180- # > (`geom_path()`).
181- # > Warning: Removed 63 rows containing missing values or values outside the scale range
182- # > (`geom_point()`).
183- # > Warning: Removed 63 rows containing missing values or values outside the scale range
184- # > (`geom_path()`).
185175```
186176
187177<img src =" man/figures/README-geodata-horizontal-1.png " width =" 100% " />
@@ -205,21 +195,6 @@ dataset2$data |>
205195 both_axes = TRUE ,
206196 template = my_template
207197 )
208- # > Warning: There were 4 warnings in `dplyr::mutate()`.
209- # > The first warning was:
210- # > ℹ In argument: `gtable = map(.data$plot_w_theme, ggplot2::ggplotGrob)`.
211- # > Caused by warning:
212- # > ! Removed 63 rows containing missing values or values outside the scale range
213- # > (`geom_point()`).
214- # > ℹ Run `dplyr::last_dplyr_warnings()` to see the 3 remaining warnings.
215- # > Warning: Removed 63 rows containing missing values or values outside the scale range
216- # > (`geom_point()`).
217- # > Warning: Removed 63 rows containing missing values or values outside the scale range
218- # > (`geom_path()`).
219- # > Warning: Removed 63 rows containing missing values or values outside the scale range
220- # > (`geom_point()`).
221- # > Warning: Removed 63 rows containing missing values or values outside the scale range
222- # > (`geom_path()`).
223198```
224199
225200<img src =" man/figures/README-geodata-horizontal-2-1.png " width =" 100% " />
0 commit comments