SymbolixAU / mapdeck
1
#' @useDynLib mapdeck, .registration = TRUE
2
#' @importFrom Rcpp sourceCpp
3
NULL
4

5
#' Pipe
6
#'
7
#' Uses the pipe operator (\code{\%>\%}) to chain statements. Useful for adding
8
#' layers to a \code{mapdeck} map
9
#'
10
#' @importFrom magrittr %>%
11
#' @name %>%
12
#' @rdname pipe
13
#' @export
14
#' @param lhs,rhs A mapdeck map and a layer to add to it
15
#' @examples
16
#' \donttest{
17
#'
18
#' key <- "your_api_key"
19
#' mapdeck(key = key) %>%
20
#' add_scatterplot(
21
#'   data = capitals
22
#'   , lat = "lat"
23
#'   , lon = "lon"
24
#'   , radius = 100000
25
#'   , fill_colour = "country"
26
#'   , layer_id = "scatter_layer"
27
#' )
28
#' }
29
NULL
30

31
experimental_layer <- function(layer) {
32 0
	message(layer, " is an experimental layer and the function may change without warning")
33
}

Read our documentation on viewing source code .

Loading