-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add draw.world.lines (from transformeR)
- Loading branch information
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#' @title Land borders | ||
#' @description Add land borders to a map | ||
#' @param ... Graphical parameters passed to \code{\link{lines}}. | ||
#' @return Draws a simplied land border areas as lines onto the map | ||
#' @details The function loads a built-in world segments dataset created ad hoc to avoid dependencies on other packages (i.e. 'maps'). | ||
#' Geographical lonlat coordinates in wgs84. | ||
#' This function was formerly in transformeR v<2.0.0. | ||
#' | ||
#' @source Postprocessed from the original shapefile from Natural Earth (http://www.naturalearthdata.com/downloads/110m-physical-vectors/) | ||
#' @author J. Bedia | ||
#' @keywords internal | ||
#' @importFrom graphics lines | ||
#' @export | ||
|
||
draw.world.lines <- function(...) { | ||
load(system.file(package = "visualizeR","wrl.Rda"), envir = environment()) | ||
for (i in 1:length(node.list)) { | ||
lines(node.list[[i]][,1], node.list[[i]][,2], ...) | ||
} | ||
} |
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.