plot3dmap {GeoXp} | R Documentation |
The function `histomap' draws a histogram of the given variable $var$ and a map with sites of coordinates $(long,lat)$. Each site is associated to a value of $var$ and there is interactivity between the two windows.
plot3dmap(long,lat,var1,var2,var3,box=TRUE, listvar=NULL, listnomvar=NULL, criteria=NULL, carte=NULL, label="",cex.lab=1, pch=16, col="blue", xlab="", ylab="",zlab="", axes=FALSE,lablong="", lablat="")
long |
a vector $x$ of size $n$ |
lat |
a vector $y$ of size $n$ |
var1 |
a vector of numeric values of size $n$ |
var2 |
a vector of numeric values of size $n$ |
var3 |
a vector of numeric values of size $n$ |
box |
a boolean with TRUE for drawing a box on the scatterplot 3d |
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$ |
criteria |
a vector of size n of boolean which permit to represent selected sites with a cross, using the tcltk window |
carte |
matrix with 2 columns for drawing spatial polygonal contours : $x$ and $y$ coordinates of the vertices of the polygon |
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 |
pch |
16 by default, choice of representation of selected points |
col |
"blue" by default, color of points on the scatterplot 3d |
xlab |
a title for the graphic x-axis |
ylab |
a title for the graphic y-axis |
zlab |
a title for the graphic z-axis |
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 |
Sites selected by a bar on the histogram are represented on the map in red and the values of sites selected on the map by `points' or `polygon' are represented in red as a sub-histogram on the histogram.
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 (2008), ``Statistique et Econométrie pour données géoréférencées : modèles et études de cas''
histomap
, histobarmap
, scattermap
, densitymap
# data on price indices of real estate in France data(immob) midiP <- readOGR(system.file("vectors/region.mif", package = "GeoXp")[1], "region") cont_midiP<-spdf2list(midiP)$poly plot3dmap(immob$longitude,immob$latitude,immob$prix.vente,immob$prix.location, immob$variation.vente,box=FALSE, carte= cont_midiP,listvar=immob, col='purple', listnomvar=names(immob),label=immob$Nom,cex.lab=0.6,xlab="prix.vente", ylab="prix.location",zlab="variation.vente") # data oldcol example(columbus) coords <- coordinates(columbus) cont<-spdf2list(columbus)$poly plot3dmap(coords[,1], coords[,2],columbus@data$CRIME,columbus@data$HOVAL, columbus@data$INC, xlab='Crime',ylab='Hoval',zlab='Income',listvar=columbus@data, listnomvar=names(columbus@data),criteria=(columbus@data$CRIME>mean(columbus@data$CRIME)), carte=cont,col="grey", label=as.character(1:length(columbus@data$X)),cex.lab=0.7) # data eire data(eire) eire.contours<-polylist2list(eire.polys.utm) plot3dmap(eire.coords.utm$V1,eire.coords.utm$V2,eire.df$A,eire.df$RETSALE, eire.df$INCOME,carte=eire.contours,listvar=eire.df, listnomvar=names(eire.df),xlab="A",ylab="RETSALE",zlab="INCOME")