Description Usage Arguments Details Examples
This class represents a user of a spatial app.
1 2 3 4 5 6 7 |
Character scalar, the id of the user.
An sf object, representing the usage data of the user.
$new()
sets up the class with two fields: id and usage_data
$print()
prints out some basic identifying information about the user.
$first_action()
returns a spatial feature representing the first action of the user.
$actions_map(flavor = "leaflet")
draws a map showing the spatial distribution of the
user's activity in the app, color coded by action. Choose either the "leaflet" or "mapview"
version of the map using the flavor parameter.
$path_map()
draws a map showing the path of the user over time.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.