barnbmap {GeoXp}R Documentation

Bar plot of the number of neighbour and map

Description

The function `barnbmap' draws the bar plot of the link number distribution for a neighbourhood structure given by a $nb$ object (spdep package) and links this bar plot with a map.

Usage

barnbmap(object, coords = NULL, listvar=NULL, listnomvar=NULL,
carte=NULL, criteria=NULL, label="", col="blue",pch=16, xlab="",
ylab="", cex.lab=1, axes=FALSE, lablong="", lablat="")

Arguments

object a object of class nb
coords a matrix of size $n times 2$
listvar matrix of variables which permit to plot bubbles using the tk window
listnomvar names of variables $listvar$
carte matrix with 2 columns for drawing spatial polygonal contours : $x$ and $y$ coordinates of the vertices of the polygon
criteria a vector of size $n$ of boolean with TRUE on specific sites (these for non interactive selection)
label vector of character of size $n$ with names of sites
col a vector of colors which may be equal to the number of group else all sites and all bars are printed in col[1]
pch a vector of symbol which may be equal to the number of group else all sites are printed in pch[1]
xlab a title for the graphic x-axis
ylab a title for the graphic y-axis
cex.lab character size of label
axes a boolean with TRUE for drawing axes on the map
lablong name of the x-axis that will be printed on the map
lablat name of the y-axis that will be printed on the map

Details

For a selected site $j$ on the map, are represented on the map its neighbours. For a selected bar on the graph, the corresponding sites are represented on the map with a link which means that two sites are neighbours.

Value

No value returned.

Note

When user select sites on the graph or on the map, he cannot add a selection by using the other graphic.

Author(s)

Aragon Y., Thomas-Agnan C., Ruiz-Gazen A., Laurent T.

References

Aragon Yves, Perrin Olivier, Ruiz-Gazen Anne, Thomas-Agnan Christine (2008), ``Statistique et Econométrie pour données géoréférencées : modèles et études de cas''

See Also

moranplotmap,makeneighborsw,normw,nonormmoran

Examples

example(columbus)
coords <- coordinates(columbus)
cont<-spdf2list(columbus)$poly

barnbmap(col.gal.nb, coords,carte=cont,listvar=columbus@data,
listnomvar=names(columbus),criteria=which(coords[,1]>mean(coords[,1])),
col=colors()[98:106], label=as.character(1:49),cex.lab=0.7,pch=1:9)

[Package GeoXp version 1.3 Index]