polyboxplotmap {GeoXp}R Documentation

Interactive polyboxplot and map

Description

Parallel Boxplots of a numerical variable by levels of a factor. It interacts with a map.

Usage

polyboxplotmap(long, lat, var1, var2, varwidth=FALSE,listvar = NULL, listnomvar = NULL,
carte = NULL, criteria = NULL, label = "", cex.lab=1, names.arg = "", xlab = "",
ylab= "count", pch = 16, col = "grey", axes = FALSE, lablong = "", lablat = "")

Arguments

long a vector $x$ of size $n$
lat a vector $y$ of size $n$
var1 a vector of factor of size $n$
var2 a vector of numerical values of size $n$
varwidth if varwidth is TRUE, the boxes are drawn with widths proportional to the square-roots of the number of observations in the groups
listvar matrix of variables which permit to plot bubbles on map or add a graphic using the tk window
listnomvar a list with 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 a list of character of size $n$ with name of site. Names are printed on map after a selection
cex.lab character size of label
names.arg names of factors of $var1$
xlab a title for the graphic x-axis
ylab a title for the graphic y-axis
pch 16 by default, choice of representation of selected points
col "grey" by default, color of the points of the scatter plot
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

Each site is associated to a value of a level of $var1$ and of a value of $var2$. There is an interactivity only in one direction : the sites selected by quartile-intervals on one of the boxplots are then represented on the map in red (or colors according to the options).

Value

A vector of boolean of size $n$. TRUE if the site was in the last selection.

Author(s)

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

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

dblehistomap, histobarmap, scattermap, dbledensitymap

Examples

# Data eire
data(eire)
eire.contours<-polylist2list(eire.polys.utm)

polyboxplotmap(eire.coords.utm$V1,eire.coords.utm$V2,eire.df$pale,
eire.df$POPCHG, listvar=eire.df,listnomvar=names(eire.df),carte=eire.contours,
xlab="Appartenance ou non à la région du Pale", names.arg=c("Hors Pale","Pale"),
col=c("purple","violet"))

[Package GeoXp version 1.3 Index]