-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecol.death.sim.html
40 lines (36 loc) · 1.65 KB
/
ecol.death.sim.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<html>
<head>
<meta charset="utf-8" />
<meta name="generator" content="R package animation 2.5">
<title>Ecological Death Simulation</title>
<link rel="stylesheet" href="css/reset.css" />
<link rel="stylesheet" href="css/styles.css" />
<link rel="stylesheet" href="css/scianimator.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/styles/github.min.css">
<script src="js/jquery-1.4.4.min.js"></script>
<script src="js/jquery.scianimator.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/highlight.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.3/languages/r.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</head>
<body>
<div class="scianimator"><div id="ecol_death_sim" style="display: inline-block;"></div></div>
<div class="scianimator" style="width: 600px; text-align: left"><pre><code class="r">## This animation shows the simulation of the death of two species with
## certain probabilities.
library(animation)
library(SNPRelate)
library(gdsfmt)
library(BiocInstaller)
ani.options(interval = 0.3, nmax = ifelse(interactive(),
25, 2))
par(ann = FALSE, mar = rep(0, 4))
ecol.death.sim(nr = 10, nc = 10, num.sp = c(50, 50), col.sp = c(8,
2), pch.sp = c(20, 17), col.die = 1, pch.die = 4, cex = 3)
## R version 3.3.3 (2017-03-06)
## Platform: x86_64-w64-mingw32/x64 (64-bit)
## Other packages: animation 2.5, SNPRelate 1.8.0, gdsfmt 1.10.1, BiocInstaller
## 1.24.0</code></pre></div>
<script src="js/ecol.death.sim.js"></script>
<!-- highlight R code -->
</body>
</html>