hafen / geofacet

R package for geographical faceting with ggplot2
https://hafen.github.io/geofacet/
Other
336 stars 45 forks source link

Unify Mexican state grids #158

Closed ikashnitsky closed 4 years ago

ikashnitsky commented 5 years ago

Dear @hafen, As of now there are 3 grids provided for Mexican states. Mine was the first one -- #31. I must say, it was quite data driven, so the codes are far from perfect. Next @diegovalle offered the second grid -- #36. It has much better and more detailed code/name variables. Though, I don't like the layout much. Finally, @ fazepher came up with the third option -- #135. I like this layout most. Yet, it is not included in the package so far. While the preferred layout is clearly a matter of taste, id columns should be standardized. I did this for the three Mexican grids and offer in this issue. The table of the second grid was taken as the basis.

ikashnitsky commented 5 years ago

row,col,code,name,name_official,abbr_iso,abbr,abbr_official
4,5,1,Aguascalientes,Aguascalientes,AGU,AGS,Ags.
1,1,2,Baja California,Baja California,BCN,BC,BC
2,1,3,Baja California Sur,Baja California Sur,BCS,BCS,BCS
6,11,4,Campeche,Campeche,CAM,CAMP,Camp.
3,5,5,Coahuila,Coahuila de Zaragoza,COA,COAH,Coah.
6,4,6,Colima,Colima,COL,COL,Col.
7,10,7,Chiapas,Chiapas,CHP,CHPS,Chis.
2,3,8,Chihuahua,Chihuahua,CHH,CHIH,Chih.
6,7,9,Ciudad de México,Ciudad de México,CMX,CDMX,CDMX
3,4,10,Durango,Durango,DUR,DGO,Dgo.
5,5,11,Guanajuato,Guanajuato,GUA,GTO,Gto.
7,7,12,Guerrero,Guerrero,GRO,GRO,Gro.
5,7,13,Hidalgo,Hidalgo,HID,HGO,Hgo.
5,4,14,Jalisco,Jalisco,JAL,JAL,Jal.
6,6,15,México,México,MEX,MEX,Mex.
6,5,16,Michoacán,Michoacán de Ocampo,MIC,MICH,Mich.
6,8,17,Morelos,Morelos,MOR,MOR,Mor.
4,4,18,Nayarit,Nayarit,NAY,NAY,Nay.
3,6,19,Nuevo León,Nuevo León,NLE,NL,NL
7,8,20,Oaxaca,Oaxaca,OAX,OAX,Oax.
6,9,21,Puebla,Puebla,PUE,PUE,Pue.
5,6,22,Querétaro,Querétaro,QUE,QRO,Qro.
7,12,23,Quintana Roo,Quintana Roo,ROO,QROO,Q. Roo
4,7,24,San Luis Potosí,San Luis Potosí,SLP,SLP,SLP
3,3,25,Sinaloa,Sinaloa,SIN,SIN,Sin.
1,2,26,Sonora,Sonora,SON,SON,Son.
7,11,27,Tabasco,Tabasco,TAB,TAB,Tab.
3,7,28,Tamaulipas,Tamaulipas,TAM,TAM,Tamps.
5,8,29,Tlaxcala,Tlaxcala,TLA,TLAX,Tlax.
7,9,30,Veracruz,Veracruz de Ignacio de la Llave,VER,VER,Ver.
6,12,31,Yucatán,Yucatán,YUC,YUC,Yuc.
4,6,32,Zacatecas,Zacatecas,ZAC,ZAC,Zac.
ikashnitsky commented 5 years ago

row,col,code,name,name_official,abbr_iso,abbr,abbr_official
3,5,1,Aguascalientes,Aguascalientes,AGU,AGS,Ags.
1,1,2,Baja California,Baja California,BCN,BC,BC
2,1,3,Baja California Sur,Baja California Sur,BCS,BCS,BCS
7,8,4,Campeche,Campeche,CAM,CAMP,Camp.
2,4,5,Coahuila,Coahuila de Zaragoza,COA,COAH,Coah.
5,4,6,Colima,Colima,COL,COL,Col.
8,7,7,Chiapas,Chiapas,CHP,CHPS,Chis.
1,3,8,Chihuahua,Chihuahua,CHH,CHIH,Chih.
6,5,9,Ciudad de México,Ciudad de México,CMX,CDMX,CDMX
2,3,10,Durango,Durango,DUR,DGO,Dgo.
4,4,11,Guanajuato,Guanajuato,GUA,GTO,Gto.
7,5,12,Guerrero,Guerrero,GRO,GRO,Gro.
4,6,13,Hidalgo,Hidalgo,HID,HGO,Hgo.
4,3,14,Jalisco,Jalisco,JAL,JAL,Jal.
5,5,15,México,México,MEX,MEX,Mex.
7,4,16,Michoacán,Michoacán de Ocampo,MIC,MICH,Mich.
6,4,17,Morelos,Morelos,MOR,MOR,Mor.
3,3,18,Nayarit,Nayarit,NAY,NAY,Nay.
2,5,19,Nuevo León,Nuevo León,NLE,NL,NL
7,6,20,Oaxaca,Oaxaca,OAX,OAX,Oax.
6,6,21,Puebla,Puebla,PUE,PUE,Pue.
4,5,22,Querétaro,Querétaro,QUE,QRO,Qro.
7,9,23,Quintana Roo,Quintana Roo,ROO,QROO,Q. Roo
3,6,24,San Luis Potosí,San Luis Potosí,SLP,SLP,SLP
2,2,25,Sinaloa,Sinaloa,SIN,SIN,Sin.
1,2,26,Sonora,Sonora,SON,SON,Son.
7,7,27,Tabasco,Tabasco,TAB,TAB,Tab.
2,6,28,Tamaulipas,Tamaulipas,TAM,TAM,Tamps.
5,6,29,Tlaxcala,Tlaxcala,TLA,TLAX,Tlax.
4,7,30,Veracruz,Veracruz de Ignacio de la Llave,VER,VER,Ver.
6,9,31,Yucatán,Yucatán,YUC,YUC,Yuc.
3,4,32,Zacatecas,Zacatecas,ZAC,ZAC,Zac.
ikashnitsky commented 5 years ago

row,col,code,name,name_official,abbr_iso,abbr,abbr_official
3,5,1,Aguascalientes,Aguascalientes,AGU,AGS,Ags.
1,1,2,Baja California,Baja California,BCN,BC,BC
2,1,3,Baja California Sur,Baja California Sur,BCS,BCS,BCS
5,11,4,Campeche,Campeche,CAM,CAMP,Camp.
1,4,5,Coahuila,Coahuila de Zaragoza,COA,COAH,Coah.
4,4,6,Colima,Colima,COL,COL,Col.
6,9,7,Chiapas,Chiapas,CHP,CHPS,Chis.
1,3,8,Chihuahua,Chihuahua,CHH,CHIH,Chih.
4,7,9,Ciudad de México,Ciudad de México,CMX,CDMX,CDMX
2,4,10,Durango,Durango,DUR,DGO,Dgo.
3,6,11,Guanajuato,Guanajuato,GUA,GTO,Gto.
6,7,12,Guerrero,Guerrero,GRO,GRO,Gro.
3,7,13,Hidalgo,Hidalgo,HID,HGO,Hgo.
4,5,14,Jalisco,Jalisco,JAL,JAL,Jal.
5,6,15,México,México,MEX,MEX,Mex.
5,5,16,Michoacán,Michoacán de Ocampo,MIC,MICH,Mich.
5,7,17,Morelos,Morelos,MOR,MOR,Mor.
3,4,18,Nayarit,Nayarit,NAY,NAY,Nay.
1,5,19,Nuevo León,Nuevo León,NLE,NL,NL
6,8,20,Oaxaca,Oaxaca,OAX,OAX,Oax.
4,8,21,Puebla,Puebla,PUE,PUE,Pue.
4,6,22,Querétaro,Querétaro,QUE,QRO,Qro.
4,12,23,Quintana Roo,Quintana Roo,ROO,QROO,Q. Roo
2,6,24,San Luis Potosí,San Luis Potosí,SLP,SLP,SLP
2,3,25,Sinaloa,Sinaloa,SIN,SIN,Sin.
1,2,26,Sonora,Sonora,SON,SON,Son.
5,10,27,Tabasco,Tabasco,TAB,TAB,Tab.
1,6,28,Tamaulipas,Tamaulipas,TAM,TAM,Tamps.
5,8,29,Tlaxcala,Tlaxcala,TLA,TLAX,Tlax.
5,9,30,Veracruz,Veracruz de Ignacio de la Llave,VER,VER,Ver.
4,11,31,Yucatán,Yucatán,YUC,YUC,Yuc.
2,5,32,Zacatecas,Zacatecas,ZAC,ZAC,Zac.
stedy commented 4 years ago

stedy commented 4 years ago

This grid was added to geofacet version 0.2