ImagePoly: Plots regional data in map plots

Description Usage Arguments Author(s) Examples

View source: R/ImagePoly.R

Description

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

Usage

1
2
3
4
5
6
7
8
ImagePoly(poly, 
      	  dataframe, 
      	  context.id, 
      	  names = NULL, 
      	  show.names = NULL, 
      	  method = "equal", 
      	  nbr = 10, 
      	  ...)

Arguments

poly

A SpatialPolygonsDataFrame

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

Author(s)

Mathieu Cossuta, Davide Morselli

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## 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)

geospacom documentation built on May 2, 2019, 7:23 a.m.