Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,8 @@ importFrom(httr,stop_for_status)
importFrom(httr,warn_for_status)
importFrom(jpeg,readJPEG)
importFrom(magrittr,"%>%")
importFrom(plyr,.)
importFrom(plyr,arrange)
importFrom(plyr,compact)
importFrom(plyr,ddply)
importFrom(plyr,desc)
importFrom(plyr,dlply)
importFrom(plyr,is.discrete)
Expand Down
4 changes: 2 additions & 2 deletions R/ggmap-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#' @name ggmap
#' @importFrom png readPNG
#' @importFrom jpeg readJPEG
#' @importFrom plyr arrange compact ddply desc dlply is.discrete is.formula join
#' ldply llply .
#' @importFrom plyr arrange compact desc dlply is.discrete is.formula join
#' ldply llply
#' @importFrom bitops bitOr bitShiftL bitShiftR bitAnd
#' @importFrom grDevices as.raster extendrange gray rgb
#' @importFrom stats time asOneSidedFormula
Expand Down
6 changes: 5 additions & 1 deletion R/ggmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@
#' geom_path(aes(x = lon, y = lat, group = plotOrder),
#' data = zips, colour = "white", alpha = .4, size = .4)
#'
#' library(plyr)
#' zips <- zips[!duplicated(names(zips))]
#' zipsLabels <- zips %>%
#' dplyr::slice(1L, .by = zip) %>%
#' dplyr::select(area, perimeter, zip, lonCent, latCent) %>%
#' dplyr::arrange(zip)
#' zipsLabels <- ddply(zips, .(zip), function(df){
#' df[1,c("area", "perimeter", "zip", "lonCent", "latCent")]
#' })
Expand Down
9 changes: 5 additions & 4 deletions man/ggmap.Rd

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