boxplotmap {GeoXp} | R Documentation |
The function `boxplotmap' draws a boxplot of the given variable $var$ and a map with site of coordinates $(long,lat)$.
boxplotmap(long, lat, var, listvar = NULL, listnomvar = NULL, carte = NULL, criteria = NULL, label = "", symbol = 0, color = 1, labvar = "", axis = FALSE, lablong = "", lablat = "")
long |
a vector $x$ of size $n$ |
|
|
lat |
a vector $y$ of size $n$ |
|
|
var |
a vector of numerical values of size $n$ |
|
|
listvar |
matrix of variables fo size $n times p$ for optional additional graph and bubbles |
|
|
listnomvar |
list of character of size $p$ with names of variables from $listvar$ |
|
|
criteria |
a vector of size $n$ of boolean with TRUE on specific sites (these for non interactive selection) |
|
|
carte |
matrix with 2 columns for drawing spatial polygonal contours : $x$ and $y$ coordinates of the vertices of the polygon |
|
|
label |
vector of character of size $n$ with names of each site |
|
|
color |
0 or 1 (by default), choice of representation of selected points (if user has selected a barplot as an additionnal graph). If 0, sites are represented in blue, if 1, sites are represented with different colors for each factor |
|
|
symbol |
0 or 1, choice of representation of selected points. If 0, selected points are circles, if 1, selected points are stars |
|
|
labvar |
name of variable $var$ |
|
|
axis |
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 |
There is an interactivity only in one direction : the sites selected by interquartile on the boxplot are represented on the map in red.
A vector of boolean of size $n$. TRUE if the site was in the last selection.
Thomas-Agnan C., Aragon Y., Ruiz-Gazen A., Laurent T., Robidou L.
Aragon Yves, Perrin Olivier, Ruiz-Gazen Anne, Thomas-Agnan Christine (2006), ``Statistique et Econométrie pour données géoréférencées : modèles et études de cas''
histomap
, histobarmap
, scattermap
, densitymap
# donnees oldcol data(oldcol) data(oldcol.polys) contours.OLD<-polylist2list(oldcol.polys) boxplotmap(oldcol$X, oldcol$Y,oldcol$CRIME,listvar=oldcol, carte=contours.OLD, listnomvar=names(oldcol),criteria=(oldcol$CP==1), axis=TRUE,lablong="X",lablat="Y") # donnees boston data(boston) boxplotmap(boston$x,boston$y,boston$CRIM,listvar=boston, listnomvar=names(boston),criteria=(boston$CHAS==1)) # données eire data(eire) data(eire.polys) eire.contours<-polylist2list(eire.polys) boxplotmap(eire$V1,eire$V2,eire$POPCHG, listvar=eire,listnomvar=names(eire),carte=eire.contours, labvar="Taux d'évolution de la population de 1921 à 1962")