get_ggmap_from_df {activatr}R Documentation

Get a ggmap object for a given Activatr DF.

Description

Note that since this calls ggmap::get_googlemap, you must have previously called ggmap::register_google to register an API key.

Usage

get_ggmap_from_df(df, ...)

Arguments

df

A Activatr DF: a tibble from parse_gpx or parse_tcx.

...

Additional arguments to pass to ggmap::get_googlemap.

Value

A ggmap object, the result of calling ggmap::get_googlemap, but with the correct center and size to include the entire data frame.


[Package activatr version 0.1.0 Index]