R/northSymbols.R

Defines functions northSymbols

Documented in northSymbols

#' Available north symbols.
#' @description Displays avaliable north symbols.
#' @note The symbols were obtained from QGIS 2.8.1 - Wien.
#' @references http://www.qgis.org/en/site
#' @export
#' @examples 
#' northSymbols()
northSymbols <- function() {
    img <- readPNG(paste0(system.file('symbols', package = 'ggsn'),
                          '/', 'symbols.png'))
    plot(0, type='n', xlim=0:1, ylim=0:1, axes = F, xlab = '', ylab = '')
    rasterImage(img, 0, 0, 1, 1)
}

Try the ggsn package in your browser

Any scripts or data that you put into this service are public.

ggsn documentation built on May 1, 2019, 8:21 p.m.