Displaying 8 results from an estimated 8 matches for "wrld_simpl".
2009 Apr 06
1
political maps world maps in R, wrld_simpl
...k.
I have a list of countries (about fifty all over in the world) scored
with a real positive value. Eg
Country score
Italy .56
UK .58
Korea .41
Mexico .63
...
I wish to plot geographical maps where every country is filled with a
color depending on his score.
Using maptools library and wrld_simpl I can easily perform the world
map. Here my code:
#########################################################
### plot the world map
patramp = colorRamp(c(rgb(0,0,.7),"red"))# my personal ramp color palette
library(maptools)
load(url("http://spatial.nhh.no/R/etc/TM_WORLD_BORDERS_...
2017 Jun 07
1
Errors running spdplyr example
Dear All,
When I tried to run the following code (taken from the *spdplyr* package
vignettes):
library(spdplyr)
library(maptools)
data(wrld_simpl)
worldcorner <- wrld_simpl %>%
mutate(lon = coordinates(wrld_simpl)[,1], lat =
coordinates(wrld_simpl)[,2]) %>%
filter(lat < -20, lon > 60) %>%
dplyr::select(NAME)
I got the following error messages:
Error in (function (cl, name, valueClass) :
c("assignment of an...
2019 Jun 09
2
como graficar una coordenada en un mapa
Hola a todos.
Soy nuevo en R, estoy aprendiendo con tutoriales y lo hago sin un fin
comercial y/o laboral.
Necesito ayuda para mostrar un mapa y sobre ese mapa poner un punto dado
por una coordenada.
con esto consigo mostrar el mapa.
library(raster)
arg<-getData('GADM', country='ARG', level=0)
plot(arg)
En ese mapa quiero mostrar un punto que está en el sistema de
2019 Mar 19
2
Como generar el dibujo de un mapa, tipo los de maptools::data(wrld_simpl)
Buenas!
Estoy intentando hacer un trabajo con mapas y llegué a un punto en el que
me atasco:
Quiero generar el dibujo de un mapa.
A ese mapa después le señalaría unos puntos y en, base a esos puntos,
dividiría el mapa en secciones (usando diagramas Voronoi, que creo que
sabría hacerlo, por más que todavía me quedan raro)
Todavía lo que sé hacer es muy ínfimo (marcar puntos y etiquetar con
2009 May 13
1
Overlaying two plots
Hi useR's,
I want to overlay an image plot over a world map and I can do it, but just
not the way I need to do it. Here is the code I am using (with data file
attached) to create my baseline map:
library(sp)
load("TM_WORLD_BORDERS_SIMPL-0.2.RData")
par(bty="l")
plot(wrld_simpl, axes = TRUE, ylim = c(-90, 90), xlim=c(-180, 180), asp=1.5)
lim <- par("usr")
abline(v=-180, h=90, col="red") #Image plot needs to be inside this square#
abline(v=180, h=-90, col="red")
The last two statements create a square on the map between the latitude and
l...
2019 Mar 19
2
Como generar el dibujo de un mapa, tipo los de maptools::data(wrld_simpl)
Muchas gracias, Carlos.
Estaba emperrado con usar OSM. Pero sevuramente los de Google presentaran
alguna solucion.
Intento probar pronto.
Juan Abasolo.
telefomotik, barjatu trebezi falta
Carlos Ortega <cof en qualityexcellence.es> igorleak hau idatzi zuen (2019
mar. 19, ar. 23:13):
> Hola,
>
> No sé si esto seguirá siendo vigente, con los cambios en las APIs de
> Google...
2012 Oct 21
1
[newbie] failure to plot a RasterLayer with raster::plot or fields::image.plot
...nloads/TomRoche/GEIA_to_netCDF/GEIA_N2O_oceanic_regrid.pdf
GEIA_N2O_oceanic_regrid.pdf comprises 3 pages, corresponding to 3 blocks of code at the end of regrid.global.to.AQMEII.r:
* page 1: results from a simple raster::plot of the regridded raster,
plus a projected version of a CONUS map from wrld_simpl:
map.us.unproj <- wrld_simpl[wrld_simpl$ISO3 == 'USA', ] # unprojected
map.us.proj <- spTransform(map.us.unproj, CRS(out.crs)) # projected
Unfortunately the output is ... odd. The EI data is represented by a
thin vertical smear down the middle of the plot space. The US map is...
2012 Jul 03
1
how to plot the data in a map?
hi R-users:
I have some data related with geographical information.
I wonder how to plot some data (in contour,shaded or scatter) on a map.
Could anyone tell me which package or reference or examples I can learn
?
thank you .
--
TANG Jie
Email: totangjie@gmail.com
[[alternative HTML version deleted]]