Skip to content

Commit

Permalink
add colorspaceto Imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
temospena committed Aug 17, 2021
1 parent a33fe05 commit 63ae644
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ Imports:
raster,
methods,
pbapply,
geodist
geodist,
colorspace
Depends:
R (>= 2.10)
Suggests:
terra,
colorspace,
knitr,
rmarkdown,
ceramic,
Expand Down
12 changes: 2 additions & 10 deletions R/plot_slope.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ plot_slope = function(routes,
lonlat = sf::st_is_longlat(routes),
fill = TRUE,
horiz = FALSE,
p = ifelse(
test = requireNamespace("colorspace", quietly = TRUE),
colorspace::diverging_hcl,
grDevices::terrain.colors
),
p = colorspace::diverging_hcl,
...,
x = "top",
col = "black",
Expand Down Expand Up @@ -60,11 +56,7 @@ plot_dz = function(d,
z,
fill = TRUE,
horiz = FALSE,
p = ifelse(
test = requireNamespace("colorspace", quietly = TRUE),
colorspace::diverging_hcl,
grDevices::terrain.colors
),
p = colorspace::diverging_hcl,
...,
x = "top",
col = "black",
Expand Down
3 changes: 1 addition & 2 deletions man/plot_dz.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions man/plot_slope.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 63ae644

Please sign in to comment.