elec88 {ade4} | R Documentation |
This data set gives the results of the presidential election in France in 1988 for each department and all the candidates.
data(elec88)
elec88
is a list of 7 components.
elec88$lab$dep
a vector containing the names of the 94 french departments and,
elec88$lab$reg
a factor with 21 levels defining the French administraitve regions.neig
Public data
This dataset is compatible with presid2002
and cnc2003
data(elec88) apply(elec88$tab, 2, mean) summary(elec88$res) par(mfrow = c(2,2)) plot(elec88$area[,2:3], type = "n", asp = 1) lpoly <- split(elec88$area[,2:3], elec88$area[,1]) lapply(lpoly, function(x) {points (x,type = "l");invisible()}) polygon(elec88$area[elec88$area$V1=="D25", 2:3], col = 1) area.plot(elec88$area, graph = elec88$neig, lwdg = 1) polygon(elec88$area[elec88$area$V1=="D25", 2:3], col = 1) pca1 <- dudi.pca(elec88$tab, scal = FALSE, scan = FALSE) area.plot(elec88$area, val = elec88$xy[,1] + elec88$xy[,2]) area.plot(elec88$area, val = pca1$li[,1], sub = "F1 PCA", csub = 2, cleg = 1.5) par(mfrow = c(1,1))