Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

RCura/webmaps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webmaps

This package development is discontinued due to better and more maintained packages.

For webmapping, check leaflet, leafletR and mapview.

If you need to use OpenLayers from R, OpenStreetMapR seems the best deal.

An R package for creating 'slippy web maps' from spatial data. Easily create HTML pages that show your points, lines, and polygons on world map data.

  • Author : Barry Rowlingson
  • Maintainer : Robin Cura

webmaps screenshot

Setup

This package can be installed using the devtools package, running :

require(devtools)
install_github(repo = "webmaps", username = "RCura")

Usage

library(webmaps)
state <- data.frame(state.x77)
state$Name <- rownames(state)
state$color <- strtrim(rainbow(n=nrow(state)), 7)
coordinates(state) <- cbind(state.center$x, state.center$y)

webmap(layer(layerData = state,
             name = "States",
             lstyle(
                 pointRadius = '${Murder}',
                 fillColor = "${color}",
                 strokeColor = "black",
                 fillOpacity = 0.4)),
       title="Test",
       htmlFile="index.html",
       browse=TRUE,
       toShiny=FALSE)

About

An R package for creating 'slippy web maps' from spatial data. Easily create HTML pages that show your points, lines, and polygons on world map data.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages