Description Usage Arguments Details Note Author(s) Examples

The `plotBursts`

function plots bursted Move objects (see linkburst for how to create a bursted Move Object). For every single burst a circle is plotted at the center of every segment of a track. A segment represents consecutive coordinates that belong to a single burst. The properties of the plotted circles (size and color) can represent different information (see 'Details').

1 2 3 4 5 6 7 8 9 | ```
## S4 method for signature 'list'
plotBursts(object, add=TRUE,
sizeFUN=function(x){as.numeric(diff(range(timestamps(x))),units ="mins")},
col = NA, breaks = 3, ...)
## S4 method for signature '.MoveTrackSingleBurst'
plotBursts(object, add=TRUE,
sizeFUN=function(x){as.numeric(diff(range(timestamps(x))),units ="mins")},
col = NA, breaks = 3, ...)
``` |

`object` |
a |

`add` |
logical, if FALSE a new plot is generated, default is TRUE |

`sizeFUN` |
a function to calculate the size of the plotted circles (see 'Details') |

`breaks` |
how many size classes should the circles have, default is 3 |

`col` |
a vector of color codes with the same length as the burstID. By default the standard colors from 1:8 are used (see |

`...` |
additional plot attributes |

`sizeFUN`

. Circle colors correspond to burstIDs. The size of the circles is defined by a function. By default this function calculates the relative duration of a segment compared to the whole duration. The function can be adjusted to use a different measure using the `sizeFUN`

argument.

If a list of moveBurst objects is provided, the plots are plotted one after another, and not side by side.

Marco Smolla & Anne Scharf

1 2 3 4 5 6 7 8 9 | ```
data(leroy)
behav <- c(rep(1:4,each=200), rep(5, 118))
testb <- burst(leroy, f=behav)
plot(coordinates(leroy),type="l")
plotBursts(testb, breaks=3, add=TRUE, pch=19)
plotBursts(testb, breaks=5, add=FALSE, pch=19, col=rainbow(5))
## plotting circle size of a moveBurst track by realtive segment length
plotBursts(object=testb, breaks=3, sizeFUN=function(x){sum(distance(x))}, pch=19, add=FALSE)
``` |

move documentation built on Sept. 11, 2018, 5:06 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.