diff --git a/R/map.feature.R b/R/map.feature.R index b066b3a..0ec1559 100644 --- a/R/map.feature.R +++ b/R/map.feature.R @@ -13,7 +13,7 @@ #' @param minimap logical. If TRUE, function shows mini map. By default is FALSE. #' @param tile a character verctor with a map tiles, popularized by Google Maps. See \href{https://leaflet-extras.github.io/leaflet-providers/preview/index.html}{here} for the complete set. #' @param tile.opacity numeric value from 0 to 1 denoting opacity of the tile. -#' @param color vector of colors or palette. The color argument can be (1) a character vector of RGM or named colors; (2) the name of an RColorBrewer palette; (3) the full name of a viridis palette; (4) a function that receives a single value between 0 and 1 and returns a color. For more examples see \code{\link{colorNumeric}} +#' @param color vector of colors or palette. The color argument can be (1) a character vector of RGM or named colors; (2) the name of an RColorBrewer palette; (3) the full name of a viridis palette; (4) a function that receives a single value between 0 and 1 and returns a color. For more examples see \code{\link[leaflet]{colorNumeric}} #' @param control vector of grouping values that make it possible to create control panel that can turn off/on some points on the map. #' @param density.method string with one of the two methods: "kernal density estimation" or "fixed distance" (default) #' @param density.estimation.color vector of density polygons' colors @@ -29,7 +29,7 @@ #' @param isogloss.color vector of isoglosses' colors #' @param isogloss.opacity a numeric vector of density polygons opacity. #' @param isogloss.line.width a numeric value for line width -#' @param isogloss.width for density.method = "fixed distance" it is a numeric measure (1 is 1km). For density.method = "kernal density estimation" it is a vector with two meausures (first is latitude, secong is longitude). Defaults are normal reference bandwidth (see \link{bandwidth.nrd}). +#' @param isogloss.width for density.method = "fixed distance" it is a numeric measure (1 is 1km). For density.method = "kernal density estimation" it is a vector with two meausures (first is latitude, secong is longitude). Defaults are normal reference bandwidth (see \link[MASS]{bandwidth.nrd}). #' @param image.height numeric vector of image heights #' @param image.url character vector of URLs with an images #' @param image.width numeric vector of image widths diff --git a/R/polygon.points_kde.R b/R/polygon.points_kde.R index 56f2a6c..d5f6ce5 100755 --- a/R/polygon.points_kde.R +++ b/R/polygon.points_kde.R @@ -3,8 +3,8 @@ #' This function is based on this answer: https://gis.stackexchange.com/a/203623/ #' @param latitude numeric vector of latitudes #' @param longitude numeric vector of longitudes -#' @param latitude.width bandwidths for latitude values. Defaults to normal reference bandwidth (see \link{bandwidth.nrd}). -#' @param longitude.width bandwidths for longitude values. Defaults to normal reference bandwidth (see \link{bandwidth.nrd}). +#' @param latitude.width bandwidths for latitude values. Defaults to normal reference bandwidth (see \link[MASS]{bandwidth.nrd}). +#' @param longitude.width bandwidths for longitude values. Defaults to normal reference bandwidth (see \link[MASS]{bandwidth.nrd}). #' #' @importFrom stats density #' @importFrom stats sd diff --git a/man/map.feature.Rd b/man/map.feature.Rd index 2059075..546a985 100644 --- a/man/map.feature.Rd +++ b/man/map.feature.Rd @@ -154,9 +154,9 @@ map.feature( \item{isogloss.line.width}{a numeric value for line width} -\item{isogloss.width}{for density.method = "fixed distance" it is a numeric measure (1 is 1km). For density.method = "kernal density estimation" it is a vector with two meausures (first is latitude, secong is longitude). Defaults are normal reference bandwidth (see \link{bandwidth.nrd}).} +\item{isogloss.width}{for density.method = "fixed distance" it is a numeric measure (1 is 1km). For density.method = "kernal density estimation" it is a vector with two meausures (first is latitude, secong is longitude). Defaults are normal reference bandwidth (see \link[MASS]{bandwidth.nrd}).} -\item{color}{vector of colors or palette. The color argument can be (1) a character vector of RGM or named colors; (2) the name of an RColorBrewer palette; (3) the full name of a viridis palette; (4) a function that receives a single value between 0 and 1 and returns a color. For more examples see \code{\link{colorNumeric}}} +\item{color}{vector of colors or palette. The color argument can be (1) a character vector of RGM or named colors; (2) the name of an RColorBrewer palette; (3) the full name of a viridis palette; (4) a function that receives a single value between 0 and 1 and returns a color. For more examples see \code{\link[leaflet]{colorNumeric}}} \item{stroke.color}{vector of stroke colors} diff --git a/man/polygon.points_kde.Rd b/man/polygon.points_kde.Rd index 6a63e87..2ab878f 100644 --- a/man/polygon.points_kde.Rd +++ b/man/polygon.points_kde.Rd @@ -11,9 +11,9 @@ polygon.points_kde(latitude, longitude, latitude.width, longitude.width) \item{longitude}{numeric vector of longitudes} -\item{latitude.width}{bandwidths for latitude values. Defaults to normal reference bandwidth (see \link{bandwidth.nrd}).} +\item{latitude.width}{bandwidths for latitude values. Defaults to normal reference bandwidth (see \link[MASS]{bandwidth.nrd}).} -\item{longitude.width}{bandwidths for longitude values. Defaults to normal reference bandwidth (see \link{bandwidth.nrd}).} +\item{longitude.width}{bandwidths for longitude values. Defaults to normal reference bandwidth (see \link[MASS]{bandwidth.nrd}).} } \description{ This function is based on this answer: https://gis.stackexchange.com/a/203623/