Description Usage Arguments Methods (by class)
View source: R/avoidance-visualisations.R
Creates heatmap from passed object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | create_heatmap(
obj,
bins = 100,
background = apparatus_image_path(),
add_points = FALSE,
...
)
## S3 method for class 'avoidance.single'
create_heatmap(
obj,
bins = 100,
background = apparatus_image_path(),
add_points = FALSE,
...
)
## S3 method for class 'avoidance.multiple'
create_heatmap(
obj,
bins = 100,
background = apparatus_image_path(),
add_points = FALSE,
...
)
## S3 method for class 'avoidance.single'
plot_area_presence(obj, darkside = RIGHT_ZONE_NAME, scale = 50, colors = NULL)
|
obj |
object to calculate heatmap from |
bins |
number of bins |
background |
path to a backgroud image to be plotted.
Use |
... |
optional params to the stat_density2d geom |
geom |
which geom to use? possibile are "polygon"(default) or "raster" |
avoidance.single: creates heatmap for a single animal
avoidance.multiple: merges all the data together and creates heatmap for all
avoidance.single: creates heatmap for a single animal
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.