All Projects → jhollist → quickmapr

jhollist / quickmapr

Licence: other
An R package for quickly mapping and navigating spatial data

Programming Languages

r
7636 projects
TeX
3793 projects

Projects that are alternatives of or similar to quickmapr

SpatPCA
R Package: Regularized Principal Component Analysis for Spatial Data
Stars: ✭ 16 (-73.33%)
Mutual labels:  spatial-data, r-package
mapr
Map species occurrence data
Stars: ✭ 34 (-43.33%)
Mutual labels:  mapping, r-package
geodaData
Data package for accessing GeoDa datasets using R
Stars: ✭ 15 (-75%)
Mutual labels:  spatial-data, r-package
biblioformat
Revise and Reformat Plain Text Bibliographies with R
Stars: ✭ 18 (-70%)
Mutual labels:  r-package
sportyR
R package for drawing regulation playing surfaces for several sports
Stars: ✭ 84 (+40%)
Mutual labels:  r-package
jobstatus
⛔ ARCHIVED ⛔ Send Live Status, Progress and Other Information Between Functions and Processes
Stars: ✭ 34 (-43.33%)
Mutual labels:  r-package
ctrdata
Aggregate and analyse information on clinical trials from public registers
Stars: ✭ 26 (-56.67%)
Mutual labels:  r-package
geostan
Bayesian spatial analysis
Stars: ✭ 40 (-33.33%)
Mutual labels:  r-package
symphony
Efficient and precise single-cell reference atlas mapping with Symphony
Stars: ✭ 69 (+15%)
Mutual labels:  mapping
rjsonapi
⛔ ARCHIVED ⛔ Consumer for APIs that Follow the JSON API Specification
Stars: ✭ 29 (-51.67%)
Mutual labels:  r-package
ChineseNames
🀄 Chinese Name Database (1930-2008)
Stars: ✭ 99 (+65%)
Mutual labels:  r-package
ReactionDecoder
Reaction Decoder Tool (RDT) - Atom Atom Mapping Tool
Stars: ✭ 59 (-1.67%)
Mutual labels:  mapping
ggimg
ggimg: Graphics Layers for Plotting Image Data with ggplot2
Stars: ✭ 51 (-15%)
Mutual labels:  r-package
rwalkable
⛔ ARCHIVED ⛔ Walkability Scores
Stars: ✭ 14 (-76.67%)
Mutual labels:  r-package
covidestim
Bayesian nowcasting with adjustment for delayed and incomplete reporting to estimate COVID-19 infections in the United States
Stars: ✭ 20 (-66.67%)
Mutual labels:  r-package
rfisheries
package for interacting with fisheries databases at openfisheries.org
Stars: ✭ 24 (-60%)
Mutual labels:  r-package
puma
Poisson Surface Reconstruction for LiDAR Odometry and Mapping
Stars: ✭ 302 (+403.33%)
Mutual labels:  mapping
globals
🌐 R package: Identify Global Objects in R Expressions
Stars: ✭ 27 (-55%)
Mutual labels:  r-package
calcite-maps-styler-template
An ArcGIS configurable application for creating, styling and sharing modern 2D and 3D map apps. Built with ArcGIS for Javascript API v4, Calcite Maps and Bootstrap.
Stars: ✭ 29 (-51.67%)
Mutual labels:  mapping
slam gmapping
Slam Gmapping for ROS2
Stars: ✭ 56 (-6.67%)
Mutual labels:  mapping
output editor_options
html_document
chunk_output_type
console

quickmapr

travis_status

AppVeyor Build Status

Coverage Status

DOI

RStudio_CRAN_Downloads

There are many packages that already exist or are in active development that support the visualization of spatial data in R. However, there seems to be a gap for those that need to quickly view, compare, and explore the results of a given spatial analysis. The current thinking behind quickmapr is to allow for quick visualization of sp and raster objects.

Functionality for the current release is for easy mapping of multiple layers, simple zooming, panning, labelling, and identifying. These tools are intended for use within an active spatial analysis workflow and not for production quality maps.

quickmapr is built as a series of wrapper functions for the default sp and raster plotting functions. Currently there are 10 commands. As the idea behind this is to quickly map data, an emphasis was given to brevity of function names. The commands are:

  • qmap(): creates the map and controls options
  • zi(): zooms in
  • zo(): zooms out
  • ze(): zoom in to an extent
  • p(): pans
  • l(): adds labels
  • i(): identify features
  • f(): returns to extent of originally created map
  • s(): selects and returns spatial objects
  • m(): measures distances on plot

A function for pulling in basemaps (aerials or topo-quads) from the USGS National Map is included but should be considered experimental.

Example data are available via:

  • data(lake)

##Installation To install the development version:

install.packages("devtools")
library("devtools")
install_github("jhollist/quickmapr")
library("quickmapr")

To install from CRAN (curretnly version 0.1.1):

install.packages("quickmapr")
library("quickmapr")

##Using Quickmapr (work in progress) Basic usage of quickmapr is built around a qmap object which is simply a list of sp or raster objects and a recorded plot. Most of the other quickmpar functions will work with a qmap object.

To create a qmap object:

#First some data
data(lake)
#Create your first quick map and object
qm <- qmap(elev,samples,buffer,width)

plot of chunk unnamed-chunk-4

There are some other options on qmap that let you change the draw order, coloring of vectors, extent of the map, and whether or not to preform a basic projection check (data are assumed to be in the same coordinate reference system).

So for instance, if you want to zoom in to the extent of one of your layers you could do something like:

#Zoom to the extent of the layer named width
qm<-qmap(elev,samples,buffer,extent=width)

plot of chunk unnamed-chunk-5

Currently this is only working with object in memory and not pulling from the qmap object.

You can change colors (this is still a bit clunky).

#draw samples and width in red and buffer with blue fill
qm<-qmap(elev,samples,buffer,order = c(2,1,3), colors = c("red","red","blue"), fill=TRUE)

plot of chunk unnamed-chunk-6

Basemaps can be added from the USGS' National Map (still VERY experimental,slow, and United States Specific)

#Get a Topo Basemap
qm <- qmap(qm,basemap = "topo", resolution = 1000)

plot of chunk unnamed-chunk-7

Identifying is accomplished with i() and returns different items depending on the type of spatial data.

#identify
i(qm,"samples")
i(qm,"lake")

Zooming and panning are accomplished with zi(),ze(),zo(),f(), and p():

#Zoom in on selected point
zi(qm)
#Zoom in on a chosen extent
ze(qm)
#Zoom out form selected point
zo(qm)
#Go out to full extent
f(qm)
#pan
p(qm)

#EPA Disclaimer The United States Environmental Protection Agency (EPA) GitHub project code is provided on an "as is" basis and the user assumes responsibility for its use. EPA has relinquished control of the information and no longer has responsibility to protect the integrity , confidentiality, or availability of the information. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by EPA. The EPA seal and logo shall not be used in any manner to imply endorsement of any commercial product or activity by EPA or the United States Government.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].