Description Usage Arguments Details Examples
This class represents a spatial app and its associated usage data.
1 2 3 4 5 6 7 8 9 |
Character scalar, the name of the app.
An sf object, representing the usage data for the app.
$new()
sets up the class with two properties: name and usage_data
$print()
prints out some basic identifying information about the app.
$users()
returns a vector containing the unique ids of the app's users.
$user_count()
returns a count of the app's users.
$get_user(user_id)
returns an object of class User. This object represents the user that
matches the given id.
$actions_map(flavor = "leaflet")
draws a map showing the spatial distribution of the app's
usage, color coded by action. Choose either the "leaflet" or "mapview" version of the map
using the flavor parameter.
$first_actions_map()
draws a map showing locations where users tried the app for the first
time.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.