Displaying 20 results from an estimated 4000 matches similar to: "3D Histograms on a Geographical Map"
2012 Aug 10
3
Trouble with Spatial Data Example Script
Dear All,
I need to do something relatively simple: generate a map of Europe and
paint the various states with different colors (only 3-4 are needed)
according to a rule.
I would like to keep it as simple as possible and the script resorting to
the sp package that I found at
http://bit.ly/Oc71ub
is exactly what I am looking for (I need to repeat the exercise with
Europe instead of
2012 Aug 13
1
Fine Tuning Country Map
Dear All,
Please see the short script at the end of the email, which I assembled
looking for bits and pieces on the web.
It essentially does what I need: it plots several countries as a
color-coded map.
I just would like to fine-tune a bit the final image, in particular
(1) Select my own colors for "painting" the countries (i.e. associate
manually a color to every level)
(2) Be
2009 Jul 20
3
Histograms on a log scale
Dear All,
I would like to be able to plot histograms/densities on a semi-log or
log-log scale.
I found several suggestions online
http://tolstoy.newcastle.edu.au/R/help/05/09/12044.html
https://stat.ethz.ch/pipermail/r-help/2002-June/022295.html
http://www.harding.edu/fmccown/R/#histograms
Now, consider the code snippet taken from
http://www.harding.edu/fmccown/R/#histograms
# Get a random
2009 Nov 06
4
map of a country and its different geographical levels
Hi R users
I need the map of France?s ? communes ? (towns) to build a map
Is there a way to get it?
More generally:
How to do to get the map of a country and its different geographical levels?
Best regards
--
View this message in context: http://old.nabble.com/map-of-a-country-and-its-different-geographical-levels-tp26225645p26225645.html
Sent from the R help mailing list archive at
2011 Nov 16
1
HELP DATA CLIPPING AND DATA OVERLAY ON A MAP
I have csv data that extend beyond the area I want for an existing map. I want using the boundaries of the polygon shape file as a cookie cutter so that I can overlay the csv data on map without including anything outside the map boundaries and create a dbf file or shapefile of the clipped data . The reproducible example:
###############################################
library(RColorBrewer)
2010 Sep 26
1
plot single part of the country using gadm map
Dear all,
in GADM map there are three levels (nation, province and precinct) for each
country of the world but for all of them you are never able to plot only one
part of a chosen country.
To be sure, I am trying to plot only one region of “Italy” and colour the
different precincts in it. So far I am able to colour only the part of my
interest but the programme still plot the whole country.
Is
2016 Apr 06
1
Plotting data on a map
Hello,
I would like to generate a small map (say 10cm x 10cm) of France showing cumulative numbers by Distribution Center
stored in a database:
DISTRIBUTION_CENTER COUNT
Paris 122
Paris 3
Paris 21
Lyon 12
Lyon 4444
Lyon
2018 Mar 19
1
Labelling a fortified GADM map plotted with ggplot and geom_map
I am having trouble getting data labels to display over the provinces in a GADM map of Canada.
Specifically, I need the variable "Number" from the data set "by_province", grouped by "region", to appear on the corresponding regions of the map.
The data set "by_province" looks like this:
long lat order hole piece region
2012 Jan 27
1
Overimposing one map in ssplot onto another
Hello!
I have 2 maps - both created in ssplot and both identical in terms of
outline. Is there any way to superimpose Map1 (which has black borders
between Canadian provinces) onto Map2 (which is also a map of Canada)?
Thanks a lot for your hints!
Dimitri
### A. Reading in Canada data at the province and then at the county level:
library(raster)
getData('ISO3') # Canada's code is
2013 Nov 27
0
GADM Data Download
Dear All,
Please consider the snippet at the end of the email.
I often download some maps (in the R format) from
http://www.gadm.org/
However, when I run (typically more than once) a variation of the script
below (based on http://bit.ly/1b3W0Aa ),
I often get
Error in load(url(paste("http://gadm.org/data/rda/", fileName, "_adm", :
cannot open the connection
In
2015 Apr 02
2
Mapas con spplot
Hola
He hecho el típico mapa con gadm y spplot:
library(sp)
ES <-
local(get(load(url("http://biogeo.ucdavis.edu/data/gadm2/R/ESP_adm2.RData
"))))
acerco las canarias:
A <- which(ES en data$NAME_1 == "Islas Canarias")
L <- length(ES en polygons[[A]]@Polygons)
L <- length(ES en polygons[[A]]@Polygons)
for (i in 1:L){
ES en polygons[[A]]@Polygons[[i]]@coords
2015 Apr 03
0
Mapas con spplot
Hola,
Yo lo resuelvo usando grid.rect. Tienes una posible solución aquí:
https://github.com/oscarperpinan/spacetime-vis/blob/master/choropleth.R#L216
(que es una versión actualizada de este artículo
https://procomun.wordpress.com/2012/02/18/maps_with_r_1/)
Saludos.
Oscar.
-----------------------------------------------------------------
Oscar Perpiñán Lamigueiro
Dpto. Ing. Eléctrica,
2017 Jan 03
3
Consulta mapas
Hola!
Quiero empezar a georeferenciar en mapas con R. En blogs se encuentra
bastante información pero veo que no hay unanimidad respecto a las
librerías a utilizar ni tampoco la información es muy clara ni abarcativa.
¿Alguno/a trabaja con mapas en R y me puede indicar por donde encarar?
En principio mi interés es realizar mapas sencillos con información por
provincias y departamentos de
2019 Jul 09
3
[R] Curl4, Quantmod, tseries and forecast
Hi Ralf,
I tried the following
> install.packages("RCurl")
which went OK, but then same story when I tried to install tseries.
> sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 10 (buster)
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.8.0
LAPACK:
2013 Mar 24
3
Parallelizing GBM
Dear All,
I am far from being a guru about parallel programming.
Most of the time, I rely or randomForest for data mining large datasets.
I would like to give a try also to the gradient boosted methods in GBM,
but I have a need for parallelization.
I normally rely on gbm.fit for speed reasons, and I usually call it this
way
gbm_model <- gbm.fit(trainRF,prices_train,
offset = NULL,
misc =
2009 Oct 01
1
Help for 3D Plotting Data on 'Irregular' Grid
Dear All,
Here is what I am trying to achieve: I would like to plot some data in 3D.
Usually, one has a matrix of the kind
y_1(x_1) , y_1(x_2).....y_1(x_i)
y_2(x_1) , y_2(x_2).....y_2(x_i)
...........................................
y_n(x_1) , y_n(x_2)......y_n(x_i)
where e.g. y_2(x_1) is the value of y at time 2 at point x_1 (see that
the grid in x is the same for the y values at all times).
2013 Feb 09
3
Addressing Columns in a Data Frame
Dear All,
Probably a one liner, but I am banging my head against the floor.
Consider the following
DF <- data.frame(
x=1:10,
y=10:1,
z=rep(5,10),
a=11:20
)
mn<-names(DF)
but then I cannot retrieve a column by doing e.g,
DF$mn[2]
I tried to play with the quotes and so on, but so far with no avail.
Any suggestion is welcome.
Cheers
Lorenzo
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
2012 Dec 31
2
code to convert 3D geographical coordinates to Cartesian?
Is there packaged code to convert geographical coordinates (e.g.,
longitude, latitude, elevation) to Cartesian coordinates in 3-space?
I can see how to do this using
1. a spherical-to-Cartesian conversion like pracma::sph2cart(tpr)
http://cran.r-project.org/web/packages/pracma/
2. a geographical-to-spherical conversion. This seems to involve (in
roughly increasing order of difficulty or
2011 Dec 15
3
From Distance Matrix to 2D coordinates
Dear All,
I am struggling with the following problem: I am given a NxN symmetric
matrix P ( P[i,i]=0, i=1...N and P[i,j]>0 for i!=j) which stands for the
relative distances of N points.
I would like use it to get the coordinates of the N points in a 2D
plane. Of course, the solution is not unique (given one solution, I can
translate or rotate all the points by the same amount and generate