Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
florianhartig committed Jul 19, 2024
1 parent 1cdbc7b commit 1f5ca2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
File renamed without changes.
15 changes: 6 additions & 9 deletions Readme.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ date: "2024-07-19"
output:
html_document:
keep_md: yes
editor_options:
chunk_output_type: console
---

```{r setup, include=FALSE}
Expand All @@ -19,24 +21,21 @@ A model, provided as an R package, for the simulation of spatially explicit biog
You can install directly from gh, using the 'devtools' package:

```{r, eval = F}
devtools::install_github(repo = "TheoreticalEcology/EcoPhyloSim/",
subdir = "phylosim",
devtools::install_github(repo = "TheoreticalEcology/EcoPhyloSim@v0.3",
subdir = "PhyloSim",
dependencies = T,
build_vignettes = T)
?PhyloSim
browseVignettes("PhyloSim")
```

###

### Example

```{r}
library(PhyloSim)
# Define a parameter set
par <- createCompletePar(x = 50, y = 50, dispersal = 1 , runs = 1000,
density = 0)
par <- createCompletePar(x = 50, y = 50, dispersal = 1 , runs = 1000)
# Run the model
simu <- runSimulation(par)
Expand All @@ -58,7 +57,5 @@ plot(extantPhylogeny)
#Look at the species area relation
sac(simu, area = c(1,10,100,1000), rep = 100, plot= TRUE)
```

0 comments on commit 1f5ca2e

Please sign in to comment.