R/data.R

#' Toy Dataset for `goodmap`
#'
#' A sample dataset designed to illustrate the functionality of the `goodmap` function.
#'
#' @docType data
#' @name toy_poly
#' @format A geographic data frame with 6 rows and 5 variables:
#' \describe{
#'   \item{id}{Optional data identifier.}
#'   \item{city}{Prefectural names, required for city-level map plotting.}
#'   \item{prov}{Provincial names, required for provincial-level map plotting.}
#'   \item{animate_set}{A numeric vector used to group data for animated plotting.}
#'   \item{value_set}{Values used to fill each polygon in the map.}
#' }
#' @return A data.frame object
"toy_poly"

#' Leaflet Map Names Dataset
#'
#' A internal dataset providing city names and corresponding file names for mapping with Leaflet.
#'
#' @docType data
#' @name leafletcn.map.names
#' @format A data frame with city names and file names.
#' @return A data.frame object
"leafletcn.map.names"

Try the drhutools package in your browser

Any scripts or data that you put into this service are public.

drhutools documentation built on April 4, 2025, 1:37 a.m.