makeWorld: Make world

Description Usage Arguments

Description

Make world

Usage

1
2
3
makeWorld(size = 50, range = 5, discrete = TRUE, nclasses = 2,
  habitatColors = c("#003d29", "#cac958"), plot = FALSE, returnDF = TRUE,
  main = NULL)

Arguments

size

Integer. How big should each side of the the square world be in pixels?

range

Integer. How spatially autocorrelated do you want the data? Higher values are more coarsely autocorrelated.

discrete

Logical. Should the values of cells in the world be discrete? If set to FALSE then continuous values are returned.

nclasses

Integer. How many classes (e.g. habitats) do you want to produce? This is ignored if discrete=FALSE.

habitatColors

Character vector of colors for the plot

plot

Logical Should the resulting plot of the world be printed? The plot is not returned in any case.

returnDF

Logical. Do you want to return the dataframe with the raw variables or not? Default is TRUE.

main

a title for the plot


wabarr/simulateSpatialData documentation built on May 17, 2019, 12:16 p.m.