Learn R Programming

Prettymapr: Tools for rapid, nice-looking maps in R

Prettymapr automates the process of creating a scale bar and north arrow in any package that uses base graphics to plot in R, or provides parameters that help to draw scale bars and north arrows in other plotting environments. Bounding box tools help find and manipulate extents, and geocoding tools help plot locations on maps. Finally, there is a function to automate the process of setting margins, plotting the map, scale bar, and north arrow, and resetting graphic parameters upon completion.

Installation

The prettymapr package is available on CRAN, and can be installed using install.packages("prettymapr").

Future deprecation

The prettymapr package was written several years ago and better tools to make publication-quality maps in R have been made available since its release. The prettymapr package should be considered deprecated and is in bugfix-only mode for the foreseeable future.

Copy Link

Version

Install

install.packages('prettymapr')

Monthly Downloads

2,834

Version

0.2.5

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Dewey Dunnington

Last Published

February 23rd, 2024

Functions in prettymapr (0.2.5)

scalebarparams

Get Scale Bar Parameters
addnortharrow

Plot North Arrow
geocode

Geocode Locations
clear_geocode_cache

Clear cached results
addscalebar

Auto Plot Scalebar
get_default_geocoder

Get/Set the default geocoder
plotscalebar

Raw Plot Scale Bar
prettymap

Plot A Pretty Map
makebbox

Create a Bounding Box
mergebbox

Combine bounding boxes
zoombbox

Zoom the extents of a bounding box
searchbbox

Query The Interwebs For A Bounding Box
set_cached

Internal cache methods