Skip to content

Commit

Permalink
Update vignettes
Browse files Browse the repository at this point in the history
  • Loading branch information
willgearty committed Apr 23, 2024
1 parent 07899e7 commit b8e395a
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions vignettes/a-getting-started.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ vignette: >

**Authors:** Lewis A. Jones & William Gearty

**Last updated:** 2024-01-23
**Last updated:** 2024-04-23



Expand Down Expand Up @@ -53,8 +53,8 @@ citation("rphylopic")
```
## To cite rphylopic in publications, use the following citation:
##
## Gearty, W. and Jones, L.A. 2023. rphylopic: An R package for fetching, transforming, and visualising PhyloPic
## silhouettes. Methods in Ecology and Evolution, 14(11), 2700-2708. doi: 10.1111/2041-210X.14221.
## Gearty, W. and Jones, L.A. 2023. rphylopic: An R package for fetching, transforming, and visualising PhyloPic silhouettes.
## Methods in Ecology and Evolution, 14(11), 2700-2708. doi: 10.1111/2041-210X.14221.
##
## A BibTeX entry for LaTeX users is
##
Expand Down
6 changes: 3 additions & 3 deletions vignettes/b-advanced-ggplot.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ vignette: >

**Authors:** William Gearty & Lewis A. Jones

**Last updated:** 2024-01-23
**Last updated:** 2024-04-23



Expand Down Expand Up @@ -164,7 +164,7 @@ ggplot(penguins_subset) +
labels = c("Female", "Male")) +
facet_wrap(~species, ncol = 1) +
theme_bw(base_size = 15) +
theme(legend.position = c(0.9, 0.9))
theme(legend.position.inside = c(0.9, 0.9))
```

<div class="figure">
Expand Down Expand Up @@ -402,7 +402,7 @@ revts(ggtree(vertebrate.tree, size = 1)) %<+% vertebrate_data +
scale_x_continuous(breaks = seq(-500, 0, 100),
labels = seq(500, 0, -100),
limits = c(-500, 0)) +
coord_geo_polar(dat = "periods") +
coord_geo_radial(dat = "periods") +
theme(line = element_line(linewidth = 1),
axis.text.r = element_text(size = 5, hjust = -0.5, vjust = -1.5))
```
Expand Down
6 changes: 3 additions & 3 deletions vignettes/b-advanced-ggplot.Rmd.orig
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ ggplot(penguins_subset) +
labels = c("Female", "Male")) +
facet_wrap(~species, ncol = 1) +
theme_bw(base_size = 15) +
theme(legend.position = c(0.9, 0.9))
theme(legend.position.inside = c(0.9, 0.9))
```

Now that's a nice figure!
Expand Down Expand Up @@ -166,7 +166,7 @@ tetrapods <- subset(tetrapods, genus == "Diplocaulus")

Now, let's plot those occurrences on a world map. `{ggplot2}` and it's built-in function `map_data()` make this a breeze. Note that we use `alpha = 0.75` in case there are multiple occurrences in the same place. That way, the darker the fill color, the more occurrences in that geographic location.

```{r ggplot-geog-plot-1, fig.height = 3.5}
```{r ggplot-geog-plot-1, fig.height = 3.5, warning = FALSE}
# Get map data
world <- st_as_sf(map("world", fill = TRUE, plot = FALSE))
world <- st_wrap_dateline(world)
Expand Down Expand Up @@ -312,7 +312,7 @@ revts(ggtree(vertebrate.tree, size = 1)) %<+% vertebrate_data +
scale_x_continuous(breaks = seq(-500, 0, 100),
labels = seq(500, 0, -100),
limits = c(-500, 0)) +
coord_geo_polar(dat = "periods") +
coord_geo_radial(dat = "periods") +
theme(line = element_line(linewidth = 1),
axis.text.r = element_text(size = 5, hjust = -0.5, vjust = -1.5))
```
Expand Down
2 changes: 1 addition & 1 deletion vignettes/c-advanced-base.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ vignette: >

**Authors:** William Gearty & Lewis A. Jones

**Last updated:** 2024-01-23
**Last updated:** 2024-04-23



Expand Down
Binary file modified vignettes/ggplot-penguin-plot-6-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 vignettes/ggplot-phylo-plot-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.
Binary file modified vignettes/ggplot-phylo-plot-3-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 vignettes/ggplot-phylo-plot-4-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b8e395a

Please sign in to comment.