Skip to contents

Point Sets

Utilities for generating and visualizing resource point sets

Make Point Sets

Utilities to generate point sets

unif_xy()
Make a random point set, xy
lattice()
Set up a lattice with n x n points
clusters_xy()
Use the xy values as the seed locations to generate clusters
clusters_nm()
Setup n clusters with m points per cluster

Visualize Point Sets

Utilities to visualize point sets

plot_points()
Plot point sets for a model
plot_points(<BQ>)
Plot point sets for a model for a BQ model
plot_points(<BQS>)
Plot point sets for a model for a BQS model
plot_points_bq()
Plot point sets for a bq model
plot_points_bqs()
Plot point sets for a model for a BQS model
frame_bq()
Set up a frame to plot points for a model
frame_bqs()
Set up a frame to plot points for a BQS model
add_points_b()
Add blood feeding points to a frame
add_points_bb()
Add blood feeding sites with and without the self loop
add_points_q()
Add habitats to a frame
add_points_qq()
Add habitats with and without the self loop
add_points_s()
Add sugar feeding sites to a frame
add_points_ss()
Add sugar feeding sites with and without the self loop

Dispersal and Demographic Matrices

Utilities for dispersal and demographic matrices

Kernels

Functions to compute search weights by distance

make_kF_exp()
Make an exponential function to weight points by distance
make_kF_pwr()
Make an power function to weight points by distance
make_kF_mix()
Make an power function that combines an exponential and power function

Make Psi

Generate the single bout dispersal matrices

make_Psi_xy()
Make Psi from a source point set to a destination point set
make_Psi_xx()
Make Psi from a source point set to a destination point set

Visualize a Dispersal matrix

Visualize a generic dispersal matrix

plot_matrix_xy()
Visualize a dispersal matrix among two point sets
plot_matrix_xx()
Visualize a dispersal matrix from one point set to itself
add_arrows_xy()
Draw arrows from one point set to another
add_arrows_xx()
Draw arrows from a point set to itself
add_one_arrow()
Draw an arrow from (x_i, y_i) to (x_j, y_j)
add_nth_arrow_xy()
Add the nth arrow from a list of locations and indices
add_nth_arrow_xx()
Plot the n^th arrow
add_nth_segment()
Add the nth segment
add_bent_arrows_xy()
Draw bent arrows from one point set to another
add_bent_arrows_xx()
Title

Plot Psi

Plot the single bout dispersal matrices

plot_Psi()
Visualize the one-bout dispersal matrices
plot_Psi(<BQ>)
Visualize the one-bout dispersal matrices for a BQ model
plot_Psi_BQ()
Visualize the one-bout dispersal matrices for a BQ model
plot_Psi(<BQS>)
Visualize the one-bout dispersal matrices for a BQS model
plot_Psi_BQS()
Visualize the one-bout dispersal matrices for a BQS model

Make K

Generate matrices describing feeding or egg laying within a single feeding cycle

make_Kqb()
Compute dispersal matrix to lay eggs within one feeding cycle
make_Kqb(<BQ>)
Compute dispersal matrix to lay eggs within one feeding cycle
make_Kqb(<BQS>)
Compute dispersal to lay eggs within one feeding cycle
make_Kbq()
Compute dispersal matrix to blood feed within one feeding cycle
make_Kbq(<BQ>)
Compute net dispersal matrix to blood feed within one feeding cycle
make_Kbq(<BQS>)
Compute net dispersal matrix to blood feed within one feeding cycle
make_Kbb()
Compute dispersal matrix to lay eggs within one feeding cycle
make_Kqq()
Compute dispersal matrix to lay eggs within one feeding cycle

Plot K

Plot matrices describing feeding or egg laying within a single feeding cycle

plot_Kbb()
Plot the matrix Kbb
plot_Kqq()
Plot the matrix Kqq
plot_Kbq()
Plot the matrix Kbq: dispersal from q to b
plot_Kqb()
Plot the matrix Kqb: dispersal from b to q

Egg Laying

Methods to compute and visualize egg dispersal across a mosquito generation

compute_G()
Compute the dispersion of eggs after one feeding cycle
compute_G(<BQ>)
Compute the dispersion of eggs after one feeding cycle for the BQ model
compute_G(<BQS>)
Compute the dispersion of eggs after one feeding cycle for the BQ model
compute_GG()
Compute the dispersion of eggs after one feeding cycle for the BQ model
plot_dispersal_G()
Plot lifetime egg dispersal, per mosquito
plot_dispersal_GG()
Plot lifetime egg dispersal by a mosquito population

Parasite transmission potential

Methods to compute and visualize parasite transmission potential

compute_V()
Compute the potential dispersion of parasites after one feeding cycle
compute_V(<BQ>)
Compute the potential dispersion of parasites after one feeding cycle for the BQ model
compute_V(<BQS>)
Compute the potential dispersion of parasites after one feeding cycle for the BQS model
compute_VC()
Compute the potential dispersion of parasites after one feeding cycle for the BQS model
plot_dispersal_V()
Visualize lifetime transmission from a site, per mosquito
plot_dispersal_VV()
Visualize lifetime transmission from a site by mosquito populations

Utilites for matrices

Methods to help streamline matrix visualization

decompM()
Decompose Matrix
cutoffValue()
Define a cutoff that includes a fraction of the total mass (e.g. 90 percent)
edgeSubset_fracMass()
Subset Edges
edgeSubset()
Subset Edges
getM_i()
Choose one of the matrices describing movement
getNet_i()
Choose one of the networks describing dispersion

Compute distances dispersed

Methods to compute the PMF and CMF for distances dispersed

dispersal_PMF()
Compute distances dispersed
plotDDpmf()
Plot the PMF for distances dispersed
plotDDcmf()
Plot the CMF for distances dispersed

Adult Mosquito Models

Methods to set up and compute adult mosquito models

adult_dynamics()
Adult dynamics
save_states_M()
Save state variables
init_states_M()
Save state variables
init_adult_model()
Set initial values for
compute_diffs_M()
The some of squared differences between two sets of variables
setup_adult_model()
Setup an adult model

BQ

Methods to setup and compute the BQ model

adult_dynamics(<BQ>)
Simulate adult dynamics for the `BQ` model
save_states_M(<BQ>)
Save the state variables in a vector
init_states_M(<BQ>)
Save the state variables in a vector
init_adult_model(<BQ>)
Set initial values for the BQ model
init_adult_model_BQ()
Set initial values for the BQ model
compute_diffs_M(<BQ>)
The some of squared differences between two sets of variables
setup_dispersal_BQ()
Dispersal parameters for the BQ model
make_Psi_BQ()
Make dispersal matrices for the BQS model
setup_bionomics_BQ()
Bionomic parameters set for the BQ model
make_demography_BQ()
Make the demographic matrices for the BQ model
setup_adult_model(<BQ>)
Setup a BQ model for adult mosquitoes

BQS

Methods to setup and compute the BQS model

adult_dynamics(<BQS>)
Simulate adult dynamics for the `BQ` model: one time step
save_states_M(<BQS>)
Save the state variables in a vector
init_states_M(<BQS>)
Save the state variables in a vector
init_adult_model(<BQS>)
Set initial values for the BQS model
init_adult_model_BQS()
Set initial values for the BQ model
compute_diffs_M(<BQS>)
The some of squared differences between two sets of variables
setup_dispersal_BQS()
Dispersal parameters for the BQS model
make_Psi_BQS()
Make dispersal matrices for the BQS model
setup_bionomics_BQS()
Bionomic parameters set for the BQ model
make_demography_BQS()
Make the demographic matrices for the BQS model
setup_adult_model(<BQS>)
Setup a BQS model for adult mosquitoes

Aquatic Mosquito Models

Methods to set up and compute aquatic mosquito models

aquatic_dynamics()
Aquatic Dynamics
save_states_L()
Save state variables
init_states_L()
Initialize the Lstates
init_aquatic_model()
Set initial values for
compute_diffs_L()
The some of squared differences between two sets of variables
setup_aquatic_model()
Setup an aquatic model

the basicL model

Methods to setup and compute basicL

aquatic_dynamics(<basicL>)
Aquatic Dynamics
save_states_L(<basicL>)
Save state variables
init_states_L(<basicL>)
Save the state variables in a vector
init_aquatic_model(<basicL>)
Set initial values for the BQ model
init_aquatic_model_basicL()
Set initial values for
compute_diffs_L(<basicL>)
The some of squared differences between two sets of variables
setup_aquatic_model(<basicL>)
Setup an aquatic model
setup_aquatic_model_basicL()
Set up the aquatic population model of class basicL

Simulation

Methods to set up and simulate models

SIM()
Simulate population dynamics
steady_state()
Run the model until it has reached a steady state
setup_model()
Setup a behavioral state, micro-simulation model
make_movie()
Make a movie
make_movie(<BQ>)
Make a movie of a simulation with a BQ model
make_movie(<BQS>)
Make a movie of a simulation with a BQS model
basic_analysis()
Basic analysis
makeKGV()
Compute net dispersal matrix to blood feed within one feeding cycle
make_model_squareLattice()
Setup a square lattice model with one point set offset and nested within the other
make_model_unif()
Setup a model on a random uniform set of points

Network Analysis

Methods to set up and analyze communities

Convex Hulls

Methods to compute and visualize convex hulls around communities

make_convex_hulls()
Make a set of convex hulls to visualize the community
make_convex_hull_i()
Make the convex hull for the i^th community
plot_convex_hulls()
Add the convex hulls to a framed plot
stretch_convex_hull()
Stretch (or shrink) the convex hull for plotting

Tesselate

Methods to compute and visualize using Delauney / Dirichlet methods

make_tiles()
Make a set of tiles that tesselate space
make_tiles(<BQ>)
Make a set of tiles that tesselate space for the BQ model
make_tiles(<BQS>)
Make a set of tiles that tesselate space for the BQS model