Description Usage Arguments Note See Also Examples
This function represents the relative position density of each agent during the entire experiment.
1 2 | rubitPlotHeatmap(l, refImg = NA, resol = 50, h = 10,
palet = rubitTransCol(50, 0.5))
|
l |
a list of area matrices returned by |
refImg |
the path to a reference TIFF image (see details). |
resol |
the resolution of the kernel density estimate. |
h |
the bandwidth ratio (see details). |
palet |
a vector of colours. |
The list l
can be obtained by rubitBasic
.
refImg
is an image of the same size as the video frames.
If specified (i.e. if refImg != NA
), the function will use the image as background for the plot.
An easy way to obtain such an image is to ask UbiTrail to save the first frame (by ticking the corresponding box in the GUI).
For each area, the kernel estimate density function will use a bandwidth bw = W/h
,
where W
is the width of the area.
rubitLinearInterpolate
for interpolating data. MASS::kde2d
is used by this function.
1 2 3 4 | data(tenebrio_basic)
rubitPlotHeatmap(tenebrio_basic)
rubitPlotHeatmap(tenebrio_basic, resol=150)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.