Learn R Programming

geospacom (version 0.5-8)

ImagePoly: Plots regional data in map plots

Description

Can be used to display the results of spatially weighted mulit-level analysis

Usage

ImagePoly(poly, dataframe, context.id, names = NULL, show.names = NULL, method = "equal", nbr = 10, ...)

Arguments

dataframe
A data.frame object containing the data to be plotted
context.id
The identifier of the column containing the context ids. Must correspond to the context ids in poly
names
A list of variables in dataframe we want to plot
show.names
A list of names to be added to the plots
method
chooses the style to be passed to classIntervals. It can be "fixed", "sd", "equal", "pretty", "quantile", "kmeans", "hclust", "bclust", "fisher", or "jenks". Default is "equal".
nbr
A numeric vector that specifies the number of intervals to be displayed on the shape file
...
Other options to be passed to classIntervals

Examples

Run this code
## Not run: 
# data(CH1903)
# yu.reg <- ReadPoly("path/to/my/shapefile.shp", proj = CH1903)
# 
# data(yu.reg)
# names(yu.reg) <- "area.name"
# d.geo <- DistanceMatrix(yu.reg, "area.name", longlat = FALSE)
# 
# data(homog_census)
# ImagePoly(poly=yu.reg, 
# 	  dataframe=homog_census, 
# 	  context.id="area.name", 
# 	  names ="Homog_00")
# ## End(Not run)

Run the code above in your browser using DataLab