Skip to content

Commit

Permalink
Merge pull request #6 from hugovk/patch-1
Browse files Browse the repository at this point in the history
Plot as a map
  • Loading branch information
marcusvolz authored Dec 30, 2017
2 parents a868e1c + f624afd commit 0d4a4bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/plot_map.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ plot_map <- function(data, lon_min = 0, lon_max = Inf, lat_min = 0, lat_max = In
ggplot2::geom_path(ggplot2::aes(lon, lat, group = id),
data %>% dplyr::filter(lon > lon_min, lon < lon_max, lat > lat_min, lat < lat_max),
alpha = 0.3, size = 0.3, lineend = "round") +
ggplot2::coord_equal() +
ggplot2::coord_map() +
ggplot2::theme_void()

# Return plot
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Create artistic visualisations with your Strava exercise data
### Install the packages

```R
install.packages(c("tidyverse", "devtools"))
install.packages(c("devtools", "mapproj", "tidyverse"))
devtools::install_github("marcusvolz/strava")
```

Expand Down

0 comments on commit 0d4a4bf

Please sign in to comment.