R/voivData.R

#' Data on Polish voivodships
#' 
#' Some extra data on Polish voivodships.
#' 
#' 
#' @name voivData
#' @docType data
#'
#' @format 
#' A data frame with 16 observations on the following 4 variables.
#' \describe{ 
#' \item{teryt}{numeric, area code from "TERYT": official Polish area
#' classification}
#' \item{area}{numeric, area in square kilometers}
#' \item{perimeter}{numeric, voivodship perimeter in #' kilometers}
#' \item{pop2001}{numeric, voivodship population in 2001}
#' }
#'
#' @source
#' Official statistics: \url{http://www.stat.gov.pl}
#' TERYT database: \url{http://www.stat.gov.pl/broker/access/index.jspa}
#'
#' @keywords datasets
#'
#' @examples
#' if( require(sp) ) {
#' # areas of voivodships
#' a <- structure( voivData$area, names=rownames(voivData))
#' s <- getShape("voiv")
#' k <- coordinates(s)
#' # colors
#' x <- a - min(a)
#' kol <- x / max(x)
#' plot(s, col=gray(kol))
#' text( coordinates(s), labels=voivNames(), col=gray((1-kol)>.5),
#'     cex=.8)
#' }
NULL
mbojan/mapoland documentation built on May 22, 2017, 12:13 a.m.