diff --git a/DESCRIPTION b/DESCRIPTION index 52e84ef..e7a33f7 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,4 +1,4 @@ -Package: motrap.micro +Package: ramp.micro Type: Package Title: *Mo*squito *Tr*ansmitted *P*athogen *Micro*simulation with Behavioral States Version: 0.1.0 @@ -11,8 +11,8 @@ Description: A set of algorithms to setup, simulate, and analyze systems of equa License: GPL-3 Encoding: UTF-8 LazyData: true -RoxygenNote: 7.2.3 -URL: https://dd-harp.github.io/motrap.micro/ +RoxygenNote: 7.3.1 +URL: https://dd-harp.github.io/ramp.micro/ Imports: stats, deldir, diff --git a/vignettes/landscapes.R b/vignettes/landscapes.R index 30c27e1..d8eef92 100644 --- a/vignettes/landscapes.R +++ b/vignettes/landscapes.R @@ -2,7 +2,7 @@ library(viridisLite) library(knitr) library(viridis) -library(motrap.micro) +library(ramp.micro) ## ----------------------------------------------------------------------------- dd = seq(0, 5, by = 0.01) diff --git a/vignettes/landscapes.Rmd b/vignettes/landscapes.Rmd index 8ed5072..13dd5bb 100644 --- a/vignettes/landscapes.Rmd +++ b/vignettes/landscapes.Rmd @@ -11,7 +11,7 @@ vignette: > library(viridisLite) library(knitr) library(viridis) -library(motrap.micro) +library(ramp.micro) ``` diff --git a/vignettes/landscapes.html b/vignettes/landscapes.html index a102d17..8f3f167 100644 --- a/vignettes/landscapes.html +++ b/vignettes/landscapes.html @@ -340,24 +340,25 @@
## Warning: package 'viridis' was built under R version 4.3.2
dd = seq(0, 5, by = 0.01)
-k1 = make_kF_mix(0, 2, 1, 1.5)
-k2 = make_kF_mix(0.1, 2, 1, delta=1.5)
-k3 = make_kF_mix(0, 2, 1, s=.5)
-k4 = make_kF_mix(0, 2, 1, s=.5, gamma=2)
-k5 = make_kF_mix(0, 2, 1, s=2)
-k6 = make_kF_mix(0, 2, 1, s=2, gamma=2)
-plot(dd, k1(dd), type = "l", xlab = "Distance", ylab = "Weight")
-lines(dd, k2(dd), lty = 2)
-lines(dd, k3(dd), col = "violet")
-lines(dd, k4(dd), col = "slateblue")
-lines(dd, k5(dd), col = "tomato4", lty=2)
-lines(dd, k6(dd), col = "darkorange3", lty=2)
dd = seq(0, 5, by = 0.01)
+k1 = make_kF_mix(0, 2, 1, 1.5)
+k2 = make_kF_mix(0.1, 2, 1, delta=1.5)
+k3 = make_kF_mix(0, 2, 1, s=.5)
+k4 = make_kF_mix(0, 2, 1, s=.5, gamma=2)
+k5 = make_kF_mix(0, 2, 1, s=2)
+k6 = make_kF_mix(0, 2, 1, s=2, gamma=2)
+plot(dd, k1(dd), type = "l", xlab = "Distance", ylab = "Weight")
+lines(dd, k2(dd), lty = 2)
+lines(dd, k3(dd), col = "violet")
+lines(dd, k4(dd), col = "slateblue")
+lines(dd, k5(dd), col = "tomato4", lty=2)
+lines(dd, k6(dd), col = "darkorange3", lty=2)
This
- +## ℹ Loading motrap.micro
If we want to target vector interventions for malaria spatially, @@ -382,26 +381,27 @@
To get started, we need to set up a microsimulation landscape, which includes point sets and matrices describing dispersal among those point sets:
- - - + + +dd = seq(0, 5, by = 0.01)
-plot(dd, kFb(dd), type = "l", col = "darkred", xlab = "Distance", ylab = "Weight")
-lines(dd, kFq(dd), type = "l", col = "darkblue")
dd = seq(0, 5, by = 0.01)
+plot(dd, kFb(dd), type = "l", col = "darkred", xlab = "Distance", ylab = "Weight")
+lines(dd, kFq(dd), type = "l", col = "darkblue")
Psi_bb = make_Psi_xx(bb, kFb)
-Psi_qb = make_Psi_xy(bb, qq, kFq)
-Psi_bq = make_Psi_xy(qq, bb, kFb)
-Psi_qq = make_Psi_xx(qq, kFq)
setup_model
that accepts some basic arguments and that
returns a fully defined model:
-
-
+
+
## [1] "b" "q" "nb" "nq" "Mpar" "Mvars" "terms" "Lpar" "Lvars"
-
+
## [1] "setup" "Psi_bb" "Psi_qb" "Psi_bq" "Psi_qq" "psiQ" "ova" "Mbb"
-## [9] "Mqb" "Mbq" "Mqq" "Mlb" "bigM" "eip"
-
+## [9] "Mqb" "Mbq" "Mqq" "Mbl" "bigM" "eip"
+
## [1] "pL" "zeta" "theta" "xi"
We can solve the model and produce output by calling the function
SIM
The population densities are highly heterogeneous, even though the +habitats and blood feeding sites that are all alike in every way except +location. Here, the size of each point scales with the density of the +adult, female mosquito population at that point (red = blood feeding, +blue = egg laying).
+library(viridisLite)
library(knitr)
library(viridis)
-library(motrap.micro)
+library(ramp.micro)
#suppressWarnings(devtools::load_all() )
set.seed(25)
library(viridisLite)
library(knitr)
library(viridis)
-library(motrap.micro)
+library(ramp.micro)
set.seed(25)