stm {stppSim} | R Documentation |
Spatial and temporal model
Description
To generate graphics depicting the spatial and temporal models of the final simulation
Usage
stm(pt, poly, df, crsys = NULL,
display_output = FALSE)
Arguments
pt |
a data frame with the first three fields being 'x', 'y', and 'z' information. |
poly |
(An sf or S4 object)
a polygon shapefile defining the extent of a landscape.
Default: |
df |
a vector or 1-column data frame containing values for the time series. |
crsys |
(string) the EPSG code of the projection
system of the |
display_output |
(logical) display the output.
Default: |
Details
Incorporated into psim_artif
and
psim_real
functions to allow the preview of
the spatial and the temporal model of the simulation.
The spatial model is the strength distribution of
origin which is the likeness of the spatial patterns
to be simulated. The temporal model is the preview
of the trend and seasonal patterns to be expected
from the simulation.
Value
A graphics showing the spatial and temporal model of the simulation.
Examples
## Not run:
#load polygon shapefile
load(file = system.file("extdata", "camden.rda",
package="stppSim"))
camden_boundary = camden$boundary
#read xyz data
data(xyz)
#create a time series
t <- seq(0,5,0.5)
df <- data.frame(data = abs(min(sin(t))) + sin(t))
#run function
stm(pt = xyz, poly=camden_boundary, df=df,
crsys = NULL, display_output = FALSE)
## End(Not run)