Skip to content

Commit

Permalink
bug in vignette fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
gabferreira committed Nov 10, 2023
1 parent f2ab0d6 commit 82b674a
Showing 1 changed file with 1 addition and 1 deletion.
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("/home/gabriela/Documents/phyloraster/inst/extdata/tree.jpg")
knitr::include_graphics("/home/gabriela/Documents/phyloraster/vignettes/figs/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 82b674a

Please sign in to comment.