Skip to content

Commit

Permalink
image for example added
Browse files Browse the repository at this point in the history
bug fixed in vignette
  • Loading branch information
gabferreira committed Nov 10, 2023
1 parent 7cd1302 commit 79dbe0b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added inst/extdata/tree.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion vignettes/phyloraster-vignette.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ names(dataprep$x) == tree$tip.label
The user also has the option to compute branch length and descendant number using the full supplied tree or the tree subsetted by the species present in the raster. Notice the implications of using the full or the subsetted tree. Consider, for instance, a scenario where a clade comprises four species (A, B, C and D - Figure 1a), and the particular area of study involves two of these species (A and B, in blue- Figure 1). Furthermore, let's assume that species A and B share a branch, denoted as D (in red- Figure 1). Using the full phylogenetic tree will estimate the whole length of branches for these two species, including the branch shared between them (D), that connects them with the ancestor shared with the species absent from that specific region (Figure 1b). On the other hand, when using the subsetted tree (Figure 1c), branch D will be disregarded and only the terminal branches will be used to calculate branch length, so that the calculated branch lengths of the species A and B will be shorter (Figure 1c).

```{r, fig.height = 5, fig.width = 7, fig.align = 'center', warning= FALSE, echo = FALSE}
knitr::include_graphics("/media/gabriela/HDD/Documents/Doutorado_UESC/Artigo_phylogrid/submissao Ecography/Revisao 3 Ecography Minor/tree.jpg")
knitr::include_graphics("/home/gabriela/Documents/phyloraster/inst/extdata/tree.jpg")
```
Figure 1. Phylogenetic tree for tree frogs denoting the implications of using the full or the subsetted tree in the phylo.pres function. Figure a) demonstrates the full phylogenetic tree for some tree frog species. In figure b), we have the full tree considering species A and B that are present in the region (blue), as well as the common ancestor between the two species (red). In figure c) we only have the species present in the region.

Expand Down

0 comments on commit 79dbe0b

Please sign in to comment.