Skip to content

Commit 5a94388

Browse files
authored
Merge pull request #36 from KopfLab/sk-dev
update readme
2 parents 7a1df39 + e570e1b commit 5a94388

File tree

4 files changed

+12
-32
lines changed

4 files changed

+12
-32
lines changed

README.Rmd

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ Full citation:
8282

8383
> `r dataset$citation`
8484
85+
Vertical stack plot:
86+
8587
```{r geodata}
8688
# visualize the data with ggstackplot
8789
dataset$data |>
@@ -116,10 +118,13 @@ Full citation:
116118

117119
> `r dataset2$citation`
118120
121+
Horizontal stack plot:
122+
119123
```{r "geodata-horizontal", message = FALSE}
120124
library(dplyr)
121125
library(ggplot2)
122-
# provide a different base plot with shared graphics elements among all plots
126+
127+
# use a custom template for this plot
123128
my_template <-
124129
# it's a ggplot
125130
ggplot() +

README.md

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -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
9698
dataset$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
143147
library(dplyr)
144148
library(ggplot2)
145-
# provide a different base plot with shared graphics elements among all plots
149+
150+
# use a custom template for this plot
146151
my_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%" />
124 KB
Loading
104 KB
Loading

0 commit comments

Comments
 (0)