maps: maps

Description Usage Arguments Value Examples

Description

maps

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
29
30
31
32
33
34
35
36
37
theme_bib2()

map_legend(
  size = 2.5,
  right = "box",
  left = "checked days ago",
  top = "stage age|days to hatch",
  bottom = "eggs|chicks",
  x = 543,
  y = 735
)

print_ann(
  color = "grey",
  x = Inf,
  y = Inf,
  vjust = "bottom",
  hjust = "top",
  angle = 90
)

map_empty()

map_base(size = 2.5, family = "sans", fontface = "plain", printdt = FALSE)

map_nests(
  n,
  size = 2.5,
  family = "sans",
  fontface = "plain",
  title = paste("made on:", Sys.Date()),
  notes = "",
  nx = -20,
  ny = 650
)

map_experiment(exp_id)

Arguments

n

a data.table returned by nests()

title

goes to ggtitle (should be the reference date)

notes

notes under legend annotations

nx

notes x location

ny

notes y location

exp_id

the id of the experiment as defined in the experiments table.

Value

a list of geoms defining the legend around the box

a list of geoms to append to map_nests()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
map_empty() 


map_base(family = 'sans') 


 x = nests(Sys.Date() - 1 )
 notes = c('note 1: this is note 1\nnote 99: this is note 99\nnote 9999+1: this is note 9999+1')
 n = nest_state(x, hatchingModel = predict_hatchday_model(Breeding(), rlm) )
 map_nests(n)  
 map_nests(n, notes = notes) + print_ann() 



 x = map_experiment(2)

mpio-be/bib2 documentation built on Dec. 12, 2021, 10:48 p.m.