Skip to content

Commit

Permalink
set 0 margins on plot
Browse files Browse the repository at this point in the history
  • Loading branch information
dblodgett-usgs committed Jul 31, 2024
1 parent a609fa7 commit 7d41dda
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/plot_nhdplus.R
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ plot_nhdplus <- function(outlets = NULL, bbox = NULL, streamorder = NULL,
cachedir = cache_tiles,
verbose = FALSE, provider = basemap)

old_par <- par()
on.exit(par(old_par))
par(mar = c(0, 0, 0, 0))

mapsf::mf_map(bb, type = "base", col = NA, border = NA)

maptiles::plot_tiles(tiles, add = TRUE)
Expand Down

0 comments on commit 7d41dda

Please sign in to comment.