Learn R Programming

IDE (version 0.3.1)

show_kernel: Show IDE kernel

Description

Plotting function for visualising the IDE kernel.

Usage

show_kernel(IDEmodel, scale = 1)

Arguments

IDEmodel

object of class IDE

scale

factor by which to scale the arrows when visualising a spatially-varying kernel

Details

The function show_kernel adapts its behaviour to the type of kernel. If the kernel is spatially-invariant, then the kernel with \(s\) evaluated at the origin is plotted. If spatially-variant, then arrows on a regular grid over the domain are plotted. The direction of the arrow is indicative of the transport direction at a specific location, while the length of the arrow is indicative of the transport intensity.

See Also

IDE for details on the IDE model.

Examples

Run this code
# NOT RUN {
SIM1 <- simIDE(T = 5, nobs = 100, k_spat_invariant = 0)
# }
# NOT RUN {
show_kernel(SIM1$IDEmodel)
# }

Run the code above in your browser using DataLab