Skip to content

Commit

Permalink
examples, tests, and doccheck issues fix
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Oct 17, 2015
1 parent ba4fbf4 commit 6cb6697
Show file tree
Hide file tree
Showing 11 changed files with 51 additions and 439 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Description: Provides an interface to the National Topographic System (NTS), whi
human-readable shapefiles for use in another GIS.
License: GPL-2
Depends: R (>= 2.10)
Imports: rjson, sp, digest, rgdal
Imports: sp, rgdal
URL: https://github.com/paleolimbot/rcanvec
BugReports: http://github.com/paleolimbot/rcanvec
BugReports: https://github.com/paleolimbot/rcanvec/issues
LazyData: true
Suggests: prettymapr, testthat
2 changes: 1 addition & 1 deletion R/canvec.R
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ canvec.loadfromdir <- function(directory, layerid) {
#'
#' @examples
#' \donttest{
#' download(nts("21h01"))
#' canvec.download(nts("21h01"))
#' canvec.export(nts("21h01"), "exporteddata", layers=c("road", "river"))
#' canvec.export(nts("21h01"), "exporteddataUTM", layers=c("road", "river"),
#' crs=sp::CRS("+init=epsg:26920"))
Expand Down
14 changes: 13 additions & 1 deletion R/canvec.qplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,26 @@
#' #can also plot by NTS sheet and use bbox= or xlim, ylim to zoom.
#' canvec.qplot(nts("21h1"), layers=c("waterbody", "forest", "contour", "river", "road"))
#' canvec.qplot(bbox=makebbox(45.1, -64.35, 45.05, -64.4),
#' layers=c("waterbody", "contour", "river", "building", "road"))
#' layers=c("waterbody", "contour", "river", "building", "building_poly", "road"))
#'
#' #method returns plot data argument so data does not need to be loaded each time.
#' #this will not work when changing nts sheets.
#' plotdata <- canvec.qplot(nts("21h1"), layers=c("waterbody", "forest", "contour", "river"))
#' plotdata <- canvec.qplot(bbox=makebbox(45.1, -64.35, 45.05, -64.4),
#' layers=c("waterbody", "contour", "river"),
#' data=plotdata)
#'
#' #use with prettymapr::addscalebar() and prettymapr::addnortharrow()
#' library(prettymapr)
#' wolfville <- searchbbox("Wolfville NS", source="google")
#' canvec.qplot(bbox=wolfville)
#' addscalebar()
#' addnortharrow()
#'
#' #or use with prettymapr::prettymap() to set margins and add north arrow/
#' #scalebar
#' prettymap(canvec.qplot(bbox=wolfville))
#'
#' }
#'
#' @export
Expand Down
Loading

0 comments on commit 6cb6697

Please sign in to comment.