Skip to content

Commit

Permalink
fix a few namespace issues, closes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Sep 5, 2017
1 parent c8410df commit 49b38ff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ importFrom(ggplot2,coord_sf)
importFrom(ggplot2,geom_sf)
importFrom(ggplot2,ggplot)
importFrom(ggplot2,ggtitle)
importFrom(ggplot2,scale_color_gradientn)
importFrom(ggplot2,guides)
importFrom(ggplot2,scale_colour_gradientn)
importFrom(ggplot2,scale_fill_gradientn)
importFrom(ggplot2,theme_bw)
importFrom(lazyeval,f_eval)
Expand Down Expand Up @@ -50,4 +51,5 @@ importFrom(sf,st_transform)
importFrom(stats,quantile)
importFrom(stats,setNames)
importFrom(tidyr,gather_)
importFrom(utils,getFromNamespace)
importFrom(utils,packageVersion)
6 changes: 3 additions & 3 deletions R/imports.R
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#' @import rerddap
#' @importFrom utils packageVersion
#' @importFrom utils packageVersion getFromNamespace
#' @importFrom stats quantile setNames
#' @importFrom tidyr gather_
#' @importFrom dplyr arrange between
#' @importFrom maps map
#' @importFrom scales rescale col_numeric
#' @importFrom lazyeval is_formula f_text f_eval
#' @importFrom sf st_as_sf st_transform st_crs st_bbox st_graticule
#' @importFrom ggplot2 ggplot geom_sf coord_sf theme_bw scale_color_gradientn
#' scale_fill_gradientn ggtitle aes_string aes_
#' @importFrom ggplot2 ggplot geom_sf coord_sf theme_bw scale_colour_gradientn
#' scale_fill_gradientn ggtitle aes_string aes_ guides
#' @importFrom raster raster nlayers calc ncell nrow ncol crs extent resample
#' projectRaster rasterToPolygons values plot brick setExtent isLonLat
NULL
Expand Down
2 changes: 1 addition & 1 deletion R/plotdap.R
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ add_tabledap <- function(plot, table, var, color = c("#132B43", "#56B1F7"),
add_ggplot(
plot,
geom_sf(data = table, mapping = mapping, size = size, pch = shape, ...),
scale_color_gradientn(name = lazyeval::f_text(var), colours = cols)
scale_colour_gradientn(name = lazyeval::f_text(var), colours = cols)
)
)
}
Expand Down

0 comments on commit 49b38ff

Please sign in to comment.