Functions to make working with spatial data easier

distance_by_haversine | Function to calculate distances between two points in metres... |

dms_to_decimal | Function to convert degrees, minutes, and seconds (DMS) to... |

get_osm_boundary | Function to get OpenStreetMap boundaries as spatial polygons. |

get_osm_node_data | Function to scrape OpenStreetMap's node XML documents for... |

get_osm_relation_data | Function to scrape OpenStreetMap's relation XML documents for... |

get_osm_surround | Function to get points, lines, or polygons from OpenStreetMap... |

get_osm_way_data | Function to scrape OpenStreetMap's way XML documents for... |

get_sunrise | Function to calculate sunrise and sunset dates and times for... |

google_elevation | Function to find elevation from latitude and longitude... |

google_geocode | Function to find latitude and longitude pairs from an... |

is.sp | Function to test if an R object is a Spatial* data-type. |

leaflet_plot | Convenience function to quickly plot geometries on a leaflet... |

left_join_raster | Function for extracting values from a raster object based on... |

map_to_sp | Function to convert map database objects to spatial data. |

pipe | Psudo-function to re-export *magrittr*'s pipe. |

print_projections | Function to print projections supported by R. |

projection_wgs84 | Functions to wrap common projection (PROJ.4) strings. |

ra_from_sp | Function to create a raster object from a spatial (vector)... |

ra_interpolate | Function to interpolate a raster object. |

ra_mask | Function to mask/filter/crop a raster object to a spatial... |

scrape_gpx | Function to read 'GPX' files as a data frame from the GPX... |

sort_points | Function to sort a set of points/coordinates in a clockwise... |

sp_add_row_numbers | Function to add a row number variable to a spatial object's... |

sp_area | Function to calculate areas of spatial polygons in... |

sp_bind | Function to bind different spatial objects together. |

sp_boundary | Function to get boundary of a spatial object. |

sp_bounding_box | Function to extract bounding box from a spatial object. |

sp_buffer | Function to include or exclude an area of a spatial object. |

sp_centroid | Function to find the centroid of a spatial object. |

sp_class | Function to find class of spatial object as a vector with a... |

sp_clip | Function to clip spatial objects by a rectangular envelope. |

sp_convex_hull | Function to create the smallest convex polygon that contains... |

sp_create_ellipse | Function to create a elliptical polygon from a point, usually... |

sp_create_envelope | Function to create a rectangular polygon envelope, usually... |

sp_demote | Function to drop data slots in geometries. |

sp_disaggregate | Function to disaggregate spatial objects. |

sp_dissolve_holes | Function to disolve/drop holes in a spatial polygon object. |

sp_dissolve_polygons | Function to unite polygons together and create a single... |

sp_distance | Function to find distances between two spatial objects. |

sp_erase | Function to erase pieces of a polygon based on another... |

sp_feature_ids | Function to get ids from spatial objects. |

sp_filter | Function to filter a spatial object by another spatial object... |

sp_fix | Function to fix polygons when they have issues with validity... |

sp_flip | Function to flip a spatial object. |

sp_fortify | Function to wrap ggplot2::fortify which transforms geometries... |

sp_from_data_frame | Function to promoting a data frame to a... |

sp_from_js_array | Function to create spatial objects from JavaScript arrays. |

sp_from_wkt | Function to parse a data frame containing WKT strings to a... |

sp_intersect | Function to intersect/clip/crop/filter spatial objects by a... |

sp_layer_info | Function to return layer information within a spatial data... |

sp_left_join | Function for point-in-polygon tests. |

sp_length | Function to find a spatial object's length in metres or... |

sp_list_drivers | Function to list spatial data file drivers on a system. |

sp_list_layers | Function to list layers within a spatial data file. |

sp_move | Function to move/shift a spatial object. |

sp_projection | Function to return a spatial object's projection system. |

sp_promote | Function to add a data slot in geometries. |

sp_punch | Function to "punch" (add/insert) a hole in a polygon. |

sp_read | Function to read spatial data files in a consistent way. |

sp_reflect | Function to reflect/reverse a spatial object. |

sp_reset_feature_ids | Function to reset spatial object's feature IDs. |

sp_rotate | Function to rotate a spatial object. |

sp_sample_n | Function to randomly sample n features in a spatial object. |

sp_simplify | Function to simplify spatial objects using the Douglas-Peuker... |

sp_split | Function to split a spatial object by feature. |

sp_tessellation_polygons | Function to create tessellation polygons from spatial points. |

sp_to_wkt | Function to convert a spatial object to a vector of WKT or a... |

sp_transform | Convenience function to transform a spatial object's... |

sp_unite | Function to unite spatial objects. |

str_wkt | Function to create WKT strings. |

transform_coordinates | Function to convert coordinates within a data frame. |

wgs84_to_osgb36 | Functions to convert points among different projection... |

write_geojson | Functions to write GeoJSON files with usage analogous to... |

write_gml | Function to export geometries as a Geography Markup Language... |

write_gpx | Function to export geometries as a GPX file. |

write_shapefile | Function to export geometries as shapefiles. |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.