create_heatmap: Creates heatmap from passed object

Description Usage Arguments Methods (by class)

View source: R/avoidance-visualisations.R

Description

Creates heatmap from passed object

Usage

 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)

Arguments

obj

object to calculate heatmap from

bins

number of bins

background

path to a backgroud image to be plotted. Use apparatus_image_path to construct or provide your own.

...

optional params to the stat_density2d geom

geom

which geom to use? possibile are "polygon"(default) or "raster"

Methods (by class)


hejtmy/fgu-avoidance documentation built on Sept. 19, 2021, 6:35 a.m.