8000 Add other example to map section + ref · Issue #20 · SMAC-Group/ds · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Add other example to map section + ref #20
Open
@stephaneguerrier

Description

@stephaneguerrier

Here is another example we could add to map example:

library(ggmap)
places <- c("Old main, penn state", "Beaver staduim, penn state")
places_coord <- geocode(places)
pennstate <- get_googlemap("Creamery, Penn state university", zoom = 15, maptype = 'satellite',
                           markers = places_coord)
route <- route(places[1], places[2], mode = "walking")
ggmap(pennstate) + geom_path(
  aes(x = startLon, y = startLat),  colour = "red", size = 1.5,
  data = route, lineend = "round"
)

It should like this:

screen shot 2017-09-26 at 10 58 16 am

Also we should add a ref to (ggmap : Spatial Visualization with
ggplot2)[http://stat405.had.co.nz/ggmap.pdf]

Here is another example I have made:

screen shot 2017-10-11 at 11 26 23 pm

screen shot 2017-10-11 at 11 26 30 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0