env_generate: Generate Environment

View source: R/sim_setup.R

env_generateR Documentation

Generate Environment

Description

Generates density independent environmental conditions for metacommunity simulations

Usage

env_generate(landscape, env.df, env1Scale = 2, timesteps = 1000, plot = TRUE)

Arguments

landscape

landscape generated by landscape_generate()

env.df

optional dataframe with environmental conditions with columns: env1, patch, time

env1Scale

scale of temporal environmental autocorrelation between -2 (anticorrelated) and 2 (correlated), default is 2

timesteps

number of timesteps to simulate

plot

option to show plot of environmental variation

Value

dataframe with x and y coordinates, time, and environmental conditions

Author(s)

Patrick L. Thompson, patrick.thompson@zoology.ubc.ca

Examples

env_generate(landscape_generate())


plthompson/mcomsimr documentation built on Feb. 6, 2023, 8:20 a.m.