Re: [R] MAP HELP

2020-04-07 Thread Jim Lemon
Hi Anjaly, I think that replacing the "geom_point" argument with "geom_text" will do what you want. Unfortunately I can't get an example to work (as usual) so I'm copying this back the the R help list in the hope that someone will provide the answer for you. Jim On Tue, Apr 7, 2020 at 7:29 PM anj

Re: [R] MAP HELP

2020-04-04 Thread Jim Lemon
Hi Anjaly, Here is a very simple way to plot something like this. There are many ways to do this and of course easier ways to automate the placement of the points and labels. library(maps) library(plotrix) map("world",xlim=c(13.548932,53.407331),ylim=c(70.824046,78.764113)) box() segments(20,76,25

Re: [R] MAP HELP

2020-04-04 Thread Erin Hodgess
Hi! What kind of a map are you looking for? Google Earth, Open Street map or something else, please? Is your data in a data frame? Thanks, Erin On Sat, Apr 4, 2020 at 2:10 PM anjaly menon wrote: > Hello, > > I have a dataset with latitude, longitude, station serial numbers of my > fish samp

[R] MAP HELP

2020-04-04 Thread anjaly menon
Hello, I have a dataset with latitude, longitude, station serial numbers of my fish samples collected from the Barents Sea. I need to plot out from where the samples are coming from using the latitude and longitude and the range of body sizes (length of fishes) using R. I installed packages like s

Re: [R] Map of Italy data filled at the level of the province

2016-06-02 Thread boB Rudis
This should help you get started: library(maptools) library(ggplot2) library(ggalt) library(ggthemes) library(tibble) library(viridis) # get italy region map italy_map <- map_data("italy") # your data will need to have these region names print(unique(italy_map$region)) # w

[R] Map of Italy data filled at the level of the province

2016-06-02 Thread francesca Pancotto
Dear Users I am very new to the use of ggplot. I am supposed to make a plot of Italian provinces in which I have to fill the color of some provinces with the values of a variable(I do not provide the data because it is irrelevant which data to use). Right now I explored the function map in maps

Re: [R] Map of Europe at NUTS 2 Level

2016-03-11 Thread Roger Bivand
Miluji Sb gmail.com> writes: > > Dear all. > > I would like to draw a map of France, Italy, Spain, and Portugal at NUTS 2 > level. I used the following code: > ... > # Subset NUTS 2 level data > map_nuts2 <- subset(EU_NUTS, STAT_LEVL_ == 2) > > # Draw basic plot > plot(map_nuts2) country <-

[R] Map of Europe at NUTS 2 Level

2016-03-10 Thread Miluji Sb
Dear all. I would like to draw a map of France, Italy, Spain, and Portugal at NUTS 2 level. I used the following code: library(“rgdal”) library(“RColorBrewer”) library(“classInt”) #library(“SmarterPoland”) library(fields) # Download Administrative Level data from EuroStat temp <- tempfile(fileex

Re: [R] R map data for South Africa

2015-08-14 Thread Michael Sumner
-- > View this message in context: http://r.789695.n4.nabble.com/R-map-data-for-South-Africa-tp4711123.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, se

Re: [R] R map data for South Africa

2015-08-14 Thread David Winsemius
On Aug 14, 2015, at 9:45 AM, jgui001 wrote: > I am looking for some elevation data to map in R for Cape Town, South Africa. > Can it be found in any packages or R data bases? R has a well developed set of packages for geospatial analysis as well as an active mailing list, R-SIG-GEO. I suggest

[R] R map data for South Africa

2015-08-14 Thread jgui001
I am looking for some elevation data to map in R for Cape Town, South Africa. Can it be found in any packages or R data bases? Cheers - Josh -- View this message in context: http://r.789695.n4.nabble.com/R-map-data-for-South-Africa-tp4711123.html Sent from the R help mailing list

Re: [R] map column name in matrix to multiple elements

2014-08-08 Thread Sarah Goslee
Using dput() to provide your data is enormously easier. Assuming the original column names of your data frame correspond to the ColMap column of the second data frame, it's very straightforward: mat <- structure(list(A = c(0.01, -2, -4), B = c(0.2, 1.4, -3), C = c(-0.3, 2.3, -2), D = c(0.8, 3.1,

[R] map column name in matrix to multiple elements

2014-08-08 Thread Adrian Johnson
Hi: I am requesting help on matrix mapping. I have a matrix that is 5000 rows x 3000 columns in R env. Matrix: A BC D E S1 0.01 0.2 -0.3 0.8-1 S2 -21.4 2.3 3.1-2 S3 -4 -3-2

Re: [R] Map with no political border

2014-07-30 Thread Julien Million
Fantastic Jim! Thanks a lot Julien ___ Julien Million Independent Fisheries Consultant On 30/07/14 11:31, "Jim Lemon" wrote: >On Wed, 30 Jul 2014 11:18:13 AM Julien Million wrote: >> Hi, >> >> I would like to plot a map without political borders, but not black... I >>

Re: [R] Map with no political border

2014-07-30 Thread Jim Lemon
On Wed, 30 Jul 2014 11:18:13 AM Julien Million wrote: > Hi, > > I would like to plot a map without political borders, but not black... I > am mainly using the maps package, and wanted to know if it was possible > with this one, or if I should use something else, like shape file. > > If I do > >

[R] Map with no political border

2014-07-30 Thread Julien Million
Hi, I would like to plot a map without political borders, but not black... I am mainly using the maps package, and wanted to know if it was possible with this one, or if I should use something else, like shape file. If I do library(maps) map(fill=T) I have a map of the world filled in black. I

Re: [R] Map insets and par(usr) values

2014-06-09 Thread Greg Snow
Here is an example using the subplot function. library(TeachingDemos) map("state", region= "ohio", xlim=c(-85, -80), ylim=c(38, 42)) tmp <- subplot(map("state",add=TRUE), 'bottomright', type='fig', size=c(0.2,0.2), inset=0.1) op <- par(fig=tmp$fig) map("state", region="ohio", fill=T, add=T) par(op

Re: [R] Map insets and par(usr) values

2014-06-08 Thread Jeff Newmiller
Please don't post HTML email.. we don't necessarily see what you see when you do that. Read the Posting Guide for more list etiquette. Have you played with the "usr" coordinates? Have you read the help for the par function? The par(usr=...) call is telling base graphics what the x and y coordin

[R] Map insets and par(usr) values

2014-06-08 Thread Carly Muletz
This is in reference to the post here by Ray Brownrigg: http://r.789695.n4.nabble.com/inset-one-map-on-top-of-another-map-td3848752.html using this code with the maps package: map("state", region= "ohio", xlim=c(-85, -80), ylim=c(38, 42)) par(usr=c(-216, -66, 24, 144)) # you should be able to '

Re: [R] Map plotting in a box

2014-02-28 Thread Jim Lemon
On 03/01/2014 01:53 AM, Ciara O'Hara wrote: Hi everyone, I am using the script below to create a map plot of Ireland. library(ncdf)library(maps)library(mapdata)library(maptools)library(RColorBrewer)shapefile<-readShapeLines("C:\\Users\\sophysics\\Desktop\\IRL_adm\\IRL_adm1.shp")file<-open.ncdf("C

Re: [R] Map plotting in a box

2014-02-28 Thread Ray Brownrigg
On 01/03/14 03:53, Ciara O'Hara wrote: > Hi everyone, > I am using the script below to create a map plot of Ireland. > library(ncdf)library(maps)library(mapdata)library(maptools)library(RColorBrewer)shapefile<-readShapeLines("C:\\Users\\sophysics\\Desktop\\IRL_adm\\IRL_adm1.shp")file<-open.ncdf("C

[R] Map plotting in a box

2014-02-28 Thread Ciara O'Hara
Hi everyone, I am using the script below to create a map plot of Ireland. library(ncdf)library(maps)library(mapdata)library(maptools)library(RColorBrewer)shapefile<-readShapeLines("C:\\Users\\sophysics\\Desktop\\IRL_adm\\IRL_adm1.shp")file<-open.ncdf("C:\\Users\\sophysics\\Desktop\\TempData\\avera

Re: [R] map with inset

2013-10-17 Thread markw
Hi David, That worked brilliantly! Many thanks. I also had trouble getting subplot() to work with either TeachingDemos or Hmisc. Best, Mark -- View this message in context: http://r.789695.n4.nabble.com/map-with-inset-tp4678341p4678426.html Sent from the R help mailing list archive at Nabble.

Re: [R] map with inset

2013-10-16 Thread David Carlson
help-boun...@r-project.org] On Behalf Of Bert Gunter Sent: Wednesday, October 16, 2013 11:54 AM To: David Winsemius Cc: r-help@r-project.org; markw Subject: Re: [R] map with inset ... and if that doesn't do it, check out the CRAN "spatial" task view, The "maptools" package or others

Re: [R] map with inset

2013-10-16 Thread Bert Gunter
... and if that doesn't do it, check out the CRAN "spatial" task view, The "maptools" package or others might have what you need with a friendlier interface. Cheers, Bert On Wed, Oct 16, 2013 at 9:39 AM, David Winsemius wrote: > > On Oct 16, 2013, at 3:47 AM, markw wrote: > > > Hi, > > > > I a

Re: [R] map with inset

2013-10-16 Thread David Winsemius
On Oct 16, 2013, at 3:47 AM, markw wrote: > Hi, > > I am trying to put an inset of North America onto a finer-scale map and > cannot seem to get the two maps on the same plot. > > the main map is: > map("worldHires", c("Canada", "USA"), xlim=c(-75, -52), ylim=c(40, 55), > col="gray90", fill=TR

[R] map with inset

2013-10-16 Thread markw
Hi, I am trying to put an inset of North America onto a finer-scale map and cannot seem to get the two maps on the same plot. the main map is: map("worldHires", c("Canada", "USA"), xlim=c(-75, -52), ylim=c(40, 55), col="gray90", fill=TRUE) map.axes() map('rivers', add=TRUE) map.scale(-73, 54, re

Re: [R] Map Antarctica

2013-06-05 Thread Pascal Oettli
Hi, There is a problem with xlim and ylim. map("worldHires","Antarctica",xlim=c(-180,180),ylim=c(-90,-60),col="gray90",fill=TRUE) You also might have a look at "ggplot2" library(ggplot2) world <- map_data("world") worldmap <- ggplot(world, aes(x=long, y=lat, group=group)) + geom_path() +

Re: [R] Map Antarctica

2013-06-05 Thread Michael Sumner
You have mixed your x with your y, try this: map("worldHires","Antarctica",ylim=c(-90,-60),xlim=c(-180,180),col="gray90",fill=TRUE) I tend not to use maps/mapdata if I can help it (there are problems as you can see, though there is support for projections with mapproject, see ?map), if you want

[R] Map Antarctica

2013-06-05 Thread ejb
Hey, I'm new with R and I'm attempting to map and then plot points on a map of Antarctica with help from some code at the following link. Link After downloading the packages here is the code I used. I feel like the problem has to d

[R] map question

2013-03-14 Thread Andras Farkas
Dear All,   wondering if anyone could help with a working code for the following:   I would like to plot a map using R that includes New York City (with counties of Kings, Queens, Bronx, New York and Richmond), Westchester, Nassau, Suffolk  and Rockland counties (any color would be ok per county a

Re: [R] map two names into one

2012-11-08 Thread arun
un2(vec4)) #[1] FALSE  vec5 #[1] "Iphone 4S 16G"  identical(fun2(vec6),fun2(vec7)) #[1] TRUE A.K. From: Tammy Ma To: smartpink...@yahoo.com; "r-help@r-project.org" Sent: Thursday, November 8, 2012 8:12 AM Subject: Re: [R] map two name

Re: [R] map two names into one

2012-11-08 Thread arun
t;  fun1(vec6) #[1] "5830aceGlaxyS"  identical(fun1(vec6),fun1(vec7)) #[1] TRUE  identical(fun1(vec5),fun1(vec1)) #[1] TRUE  identical(fun1(vec1),fun1(vec4)) #[1] FALSE A.K. From: Tammy Ma To: smartpink...@yahoo.com; "r-help@r-project.org" Sent:

Re: [R] map two names into one

2012-11-08 Thread arun
ec4) #[1] "16_3S_G_Iphone"  fun1(vec5) #[1] "16_4S_G_Iphone"  identical(fun1(vec1),fun1(vec5)) #[1] TRUE  identical(fun1(vec1),fun1(vec4)) #[1] FALSE A.K. From: Tammy Ma To: smartpink...@yahoo.com; "r-help@r-project.org" Sent: Thursday, November 8, 2012 8:12 AM S

Re: [R] map two names into one

2012-11-08 Thread arun
not sure what the problem is.  It works with this example.  If you can provide some details, then it would be more helpful. A.K. ________ From: Tammy Ma To: smartpink...@yahoo.com; "r-help@r-project.org" Sent: Thursday, November 8, 2012 8:12 AM Subject: Re: [

Re: [R] map two names into one

2012-11-08 Thread arun
;-paste(sort(unlist(strsplit(vec4," "))),collapse= "_") res11<-paste(sort(unlist(strsplit(vec4," "))),collapse= "_")  identical(res11,res33) #[1] FALSE identical(res11,res44) #[1] TRUE A.K. From: Tammy Ma To: smartp

Re: [R] map two names into one

2012-11-08 Thread Tammy Ma
Thanks. Yes. Your approach can identify: Glaxy ace S 5830 and S 5830 Glaxy ace But you can not identify using same program: Iphone 4S 16 G Iphone 4S 16G How should I solve both in same time. Kind regards,Tammy [[alternative

[R] map similarity spatial autocorrelation in R

2012-10-30 Thread politeness
Hi, I have two global raster maps, each of the same variable but from different sources. The values range from 0 to 5 in whole numbers. Is there a statistical test in R that can quantify the similarity of the spatial patterns (i.e., highs and lows)? Thanks, -- View this message in context: h

Re: [R] map two names into one

2012-09-26 Thread arun
t;)  vec11 #[1] "5830_ACE_GALAXY_S"  vec22 #[1] "5830_ACE_GALAXY_S"  identical(vec11,vec22) #[1] TRUE  vec33<-paste(sort(unlist(strsplit(vec3," "))),collapse="_")  identical(vec11,vec33) #[1] FALSE A.K. - Original Message - From: Tammy Ma To:

Re: [R] map two names into one

2012-09-26 Thread Sarah Goslee
Hi Tammy, I think we need more information. Are the names always four parts? Does the fix always involve moving two parts from the back to the front? For that matter, which of the two you gave is correct? Or does it matter what order the parts are in as long as it's consistent? Sorting them would

Re: [R] map two names into one

2012-09-26 Thread Kenn Konstabel
It may be easy or difficult depending on what your data are like. "GALAXY ACE S 5830" vs "S 5830 GALAXY ACE" One easy and reasonably general way would be to divide each such bit into 4 "words" and then compare if set 2 contains exactly all words in set 1 but possibly in different order. x1 <- "G

[R] map two names into one

2012-09-26 Thread Tammy Ma
Dear R user: I have got the following problem: I have imported two data sets into R: one set includes price information, another one includes volume information. but I noticed the wrong data order problem in the product name, for instance, in one data set, "GALAXY ACE S 5830" in another o

Re: [R] map axis on projected shapefiles

2012-08-08 Thread MacQueen, Don
There is no particular requirement to start with decimal degrees in R. You could have started with their original projection, as loaded into R, and reprojected directly to your desired projection (i.e., without the extra step of passing them through ArcGIS). By the way, this would have been a goo

Re: [R] map axis on projected shapefiles

2012-08-08 Thread penguins
Since posting this I've figured out the problem was due to the shapefiles I was reading in. As they were already projected they were in meters, as oppose to decimal degrees. By opening the shapefiles in ArcGIS, reprojecting them to WGS1984 and exporting, I could then reload them in R in decimal deg

[R] map axis on projected shapefiles

2012-08-08 Thread penguins
Hi, I have overlayed 2 projected shapefiles using the "plot" function. When I plot them the numbers next to the x-axis ticks are printed in scientific format (e.g. -4e+05, -3e+05,...,), and the problem is these dont match up to the projected point locations I also wish to overlay from my dataset

Re: [R] map and shapefile help

2012-04-01 Thread chuck.01
Thanks you very much for your time Michael, and I have noted that this should have been asked at the R-Sig-Geo site cheers! Michael Sumner-2 wrote > > Sorry I take that back, I was using the (independent of GDAL) > shapefile reader in maptools. Using the rgdal package, we get the full > projecti

Re: [R] map and shapefile help

2012-04-01 Thread Michael Sumner
Sorry I take that back, I was using the (independent of GDAL) shapefile reader in maptools. Using the rgdal package, we get the full projection information from the auxiliary .xml file that ships with the other shapefile files. library(rgdal) ## Here my working directory "." contains "NA_CEC_Eco_

Re: [R] map and shapefile help

2012-04-01 Thread Michael Sumner
There is no coordinate system defined for these files- proj4string is NA, see below - otherwise transforming them to that used by the maps package is trivial. I suggest you find out the coordinate system from the provider of the data and ask any further questions on R-Sig-Geo. This is a big file, ~

Re: [R] map and shapefile help

2012-03-31 Thread Michael Sumner
Try the R-Sig-Geo mailing list for a better target community, but if these are shapefiles there is read support in rgdal (or maptools for a simpler alternative) and if these are in long-lat like the maps package then plot(x, add=TRUE) will be most of the way there. If you need to transform either

[R] map and shapefile help

2012-03-31 Thread chuck.01
Hi, I want to use map("state") and have the ecoregion shape (please see link) file projected onto this. ftp://ftp.epa.gov/wed/ecoregions/cec_na/NA_CEC_Eco_Level3.zip ftp://ftp.epa.gov/wed/ecoregions/cec_na/NA_CEC_Eco_Level3.zip Could someone please show me how; I have never messed with this so

Re: [R] map at fips level using multiple variables

2011-12-14 Thread Greg Snow
[mailto:r-help-boun...@r-project.org] On Behalf Of bby2...@columbia.edu Sent: Wednesday, December 07, 2011 9:14 PM To: David Winsemius Cc: r-help@r-project.org Subject: Re: [R] map at fips level using multiple variables Hi David, Sorry it sounds vague. Here is my current code, which gives the

Re: [R] map at fips level using multiple variables

2011-12-08 Thread Albyn Jones
since each county gets a single color, you would need to combine two color schemes. I am skeptical that this will work well, but you could try using rgb(). For example - code one variable using the red component, the other using the blue component. albyn On Wed, Dec 07, 2011 at 11:14:27PM -0500

Re: [R] map at fips level using multiple variables

2011-12-07 Thread bby2103
Hi David, Sorry it sounds vague. Here is my current code, which gives the distribution of family size at US county level. You will see on a US map family size distribution represented by different colors. Now if i have another variable income, which has 3 categories(<50k, 50k-80k,>80k).

Re: [R] map at fips level using multiple variables

2011-12-07 Thread David Winsemius
On Dec 7, 2011, at 6:12 PM, bby2...@columbia.edu wrote: Hi, I just started playing with county FIPS feature in maps package which allows geospatial visualization of variables on US county level. Pretty cool. Got code? I did some search but couldn't find answer to this question--how can

[R] map at fips level using multiple variables

2011-12-07 Thread bby2103
Hi, I just started playing with county FIPS feature in maps package which allows geospatial visualization of variables on US county level. Pretty cool. I did some search but couldn't find answer to this question--how can I map more than 2 variables on US map? For example, you can map by the

Re: [R] map question

2011-10-11 Thread fub2011
maybe this helps: http://r.789695.n4.nabble.com/Create-a-map-td3689877.html#a3893581 -- View this message in context: http://r.789695.n4.nabble.com/map-question-tp795873p3893593.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-

Re: [R] map

2011-09-13 Thread Justin Haynes
i responded offline the first time, but: google is your friend: search for R maps and you'll find what I mention below. In the future make sure to perform a thorough search of google and the help forums before you post That said... you're looking for the maps package install.packages('maps')

Re: [R] map

2011-09-13 Thread Batur
Adding to the previous question, I would like to map central Asia along with those five countries (Kazakhstan, Kyrgyzstan, Uzbekstan, Tajikstan and Turkmenstan). Please tell us the right data base!!! Thanks a lot!!! -- View this message in context: http://r.789695.n4.nabble.com/map-tp3810363p3810

[R] map

2011-09-13 Thread n.via...@libero.it
Hi!I'm trying to plot the italian map with provincial administration but I don't find the right database and packages to do so.Does anyone help me and tell me how to do???Thanks for your attention [[alternative HTML version deleted]] __ R-help

Re: [R] MAP datafile

2011-06-01 Thread Jim Silverton
Hi, I have a MAP datafile with SNP data and would like to open it and run say fisher's exact test and save the p-values. Anyone has any idea how this can be done? -- Thanks, Jim. [[alternative HTML version deleted]] __ R-help@r-project.org ma

[R] Map an Area to another

2011-01-25 Thread Alaios
Dear All, I would like to ask you help with the following: Assume that I have an area of 36 cells (or sub-areas) sr<-matrix(data=seq(from=1,to=36),nrow=6,ncol=6,byrow=TRUE) > sr [,1] [,2] [,3] [,4] [,5] [,6] [1,]123456 [2,]789 10 11 12 [3,] 13 14

Re: [R] map() and pdf clipping

2010-12-01 Thread Paul Murrell
Hi On 1/12/2010 4:44 a.m., Peter Ehlers wrote: On 2010-11-30 04:56, Ben Tupper wrote: Hi, I thought it might help if I posted the resulting images. This is the pdf file where the map polygons are not clipped to the plotting boundary. http://dl.dropbox.com/u/8433654/test-map.pdf And this is

Re: [R] map() and pdf clipping

2010-11-30 Thread Ben Tupper
On Nov 30, 2010, at 10:44 AM, Peter Ehlers wrote: On 2010-11-30 04:56, Ben Tupper wrote: Hi, I thought it might help if I posted the resulting images. This is the pdf file where the map polygons are not clipped to the plotting boundary. http://dl.dropbox.com/u/8433654/test-map.pdf And this

Re: [R] map() and pdf clipping

2010-11-30 Thread Peter Ehlers
On 2010-11-30 04:56, Ben Tupper wrote: Hi, I thought it might help if I posted the resulting images. This is the pdf file where the map polygons are not clipped to the plotting boundary. http://dl.dropbox.com/u/8433654/test-map.pdf And this is the png file showing the same polygons clipped to

Re: [R] map() and pdf clipping

2010-11-30 Thread Ben Tupper
Hi, I thought it might help if I posted the resulting images. This is the pdf file where the map polygons are not clipped to the plotting boundary. http://dl.dropbox.com/u/8433654/test-map.pdf And this is the png file showing the same polygons clipped to the plotting boundary which is wha

[R] map() and pdf clipping

2010-11-29 Thread Ben Tupper
Hello, Below is a function (test.map) that permits drawing the same map using three different devices. The "pdf" device doesn't clip polygons to the plot region as I see it does by both the native device (in my case "Quartz") and the "png" device. test.map("pdf") # produces "test-map.pd

Re: [R] map on irregular grids

2010-11-04 Thread Ben Bolker
Wolfgang Polasek gmail.com> writes: >how to find a function for plotting polygon surface, like > polgon3d(xc,yc,obs) > > xc, yc ... coordinates > obs observations > result: persp plot with grid net over the coordinates Don't know of an off-the-shelf solution. Generate a Delaunay tria

[R] map on irregular grids

2010-11-04 Thread Wolfgang Polasek
Hi all how to find a function for plotting polygon surface, like polgon3d(xc,yc,obs) xc, yc ... coordinates obs observations result: persp plot with grid net over the coordinates W.Polasek [[alternative HTML version deleted]] __ R-help

Re: [R] map of a country and its different geographical levels

2009-11-07 Thread Roger Bivand
On Sat, 7 Nov 2009, hadley wickham wrote: If readShapePoly() (deprecated - use readShapeSpatial() instead) says that the data are not polygons, then they are not. If you want to fill administrative boundaries polygons, you need polygons, not lines. The source you are using is based on OpenStreet

Re: [R] map of a country and its different geographical levels

2009-11-07 Thread hadley wickham
> If readShapePoly() (deprecated - use readShapeSpatial() instead) says that > the data are not polygons, then they are not. If you want to fill > administrative boundaries polygons, you need polygons, not lines. The source > you are using is based on OpenStreetMaps, so more likely to be lines, and

Re: [R] map of a country and its different geographical levels

2009-11-07 Thread Roger Bivand
Perhaps asking on R-sig-geo might help (as well as reading the function help files, scripts found lying around somewhere may be stale ...)? If readShapePoly() (deprecated - use readShapeSpatial() instead) says that the data are not polygons, then they are not. If you want to fill administrative b

Re: [R] map of a country and its different geographical levels

2009-11-07 Thread CE.KA
Hi Greg I downloaded the file "france.shapefiles.zip" Then i unziped it. There were 4 files interesting me: - france_administrative.dbf - france_administrative.prj - france_administrative.shp - france_administrative.shx How can i do to read the map "france_administrative" with R I tried this s

[R] map of a country and its different geographical levels

2009-11-05 Thread CE.KA
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-dif

Re: [R] Map of UK Counties - to use in R

2009-08-13 Thread Roger Bivand
If your csv file has points, you can read into a data.frame using df <- read.csv() in the usual way (watch the decimal sign and use read.csv2() if need be), and coerce to a SpatialPointsDataFrame by saying coordinates(df) <- c("long", "lat") where "long", "lat" are the names of the data.fra

Re: [R] Map of UK Counties - to use in R

2009-08-12 Thread Raoul
Thanks a million Roger! This works well. All I now need to do is to figure how I can plot data from a csv file onto the map. I really appreciate your assistance! Regards, Raoul Roger Bivand wrote: > > The illustration you show is for the so-called traditional or historical > counties of England

Re: [R] Map of UK Counties - to use in R

2009-08-12 Thread Hisaji ONO
Hello. shapefiles in geographic coordinates for Epi Info http://www.cdc.gov/epiinfo/europe.htm second-level at 1998, free available but not public domain Regards. --- Roger Bivand wrote: > > The illustration you show is for the so-called > traditional or historical > counties of Engla

Re: [R] Map of UK Counties - to use in R

2009-08-12 Thread Roger Bivand
The illustration you show is for the so-called traditional or historical counties of England, which may be available somewhere. There are non-georeferenced PNG files on Wikipedia, which might be used, but as far as I can see, only UK-based academics can register for access to the edina UK borders

[R] Map of UK Counties - to use in R

2009-08-12 Thread Raoul
Hi, Can anyone help me with either of these: 1) Map of the UK counties that I could use in R? 2) How could I use an existing map for example, a map from here http://www.itraveluk.co.uk/maps/england.html - in R. I need to use a UK map to plot locations on it by lat & long. Would appreciate help on

Re: [R] Map projections - converting latitude/longitude to eastings and northings

2009-07-02 Thread stephen sefick
Thank you for your reply. Your suggestion for sending this to another list is probably the right one. I have just had so much wonderful help on this one I thought I would try this one first. I am very new to GIS and have a couple of years of experience with R. I will probably join the sig-geo g

Re: [R] Map projections - converting latitude/longitude to eastings and northings

2009-07-02 Thread Roger Bivand
Wouldn't grass-users, or maybe R-sig-geo be a more appropriate list? Given points in geographical coordinates, use project() or spTransform() in rgdal. The former will not do datum transformation, the latter will. NAD83 is a US datum specification based on WGS84, UTM is a projection but is useless

[R] Map projections - converting latitude/longitude to eastings and northings

2009-07-01 Thread stephen sefick
I am trying to set up a Grass project and need to set up the region so that I can view the map. I can look at a map and find the lat/lon, but the map projection is in UTM NAD38 WGS84 and I need to set the eastings and northings. Is there a package that will help me calculate this in R. thanks --

Re: [R] map of china without regions

2009-04-17 Thread Roger Bivand
Ray Brownrigg ecs.vuw.ac.nz> writes: > > Sorry, can't be done at the moment with the maps package. > ... > > You *might* be able to achieve what you want by selecting only those line segments that > provide portions of the external border, but I would suggest that other packages (perhaps > s

Re: [R] map of china without regions

2009-04-16 Thread Ray Brownrigg
Sorry, can't be done at the moment with the maps package. The "china" map database is based on data which was provided in latitude/longitude rectangles, and has not been properly processed to generate the line segments and polygons that the maps package uses to choose individual provinces or t

[R] map of china without regions

2009-04-16 Thread Cuvelier Etienne
Hello, I use the map package in conjunction with the mapdata package, and I want to draw the map of China without interior regions. After reading the doc and searched in this mailing list I've tried map("china",interior=FALSE) and map("china",fill=TRUE) but I allways see the interior regions...

Re: [R] Map using projection

2009-03-17 Thread Dr. Alireza Zolfaghari
Thanks Ray On Thu, Mar 12, 2009 at 11:01 PM, Dr. Alireza Zolfaghari < ali.zolfagh...@gmail.com> wrote: > Hi list, > I have a real problem with plotting US state map. When I try to plot the > northern state, there will be some blank space in the top of graph (see case > 1 example), and when I plot

Re: [R] Map using projection

2009-03-14 Thread Ray Brownrigg
OK, the underlying problem is that the projection code (i.e. the mapproj package plus some parts of the maps package) does not clip its output to the specified limits. Let me explain: 1) the maps databases are made up of line segments which are combined to form polygons 2) when you call map() w

Re: [R] Map using projection

2009-03-13 Thread Ray Brownrigg
I think what you are missing is that the default map database is "world". If you use: library(maps) require("mapproj") longlatLimit<-c(-107,-93,40,52) par(plt=c(0,1,0,1),cex=1,cex.main=1) #Set plotting parameters map(regions="USA", projection="azequalarea", type="n",xlim=long

[R] Map using projection

2009-03-12 Thread Dr. Alireza Zolfaghari
Hi list, I have a real problem with plotting US state map. When I try to plot the northern state, there will be some blank space in the top of graph (see case 1 example), and when I plot southern states, there will be a blank space in the bottom of plot (see case 2). I spent almost 2 days to figure

[R] Map

2009-03-04 Thread Dr. Alireza Zolfaghari
Hi list, I dont know why the top of map gets truncated: I appreciate if any one give me a solution. filename="C:\\temp\\test.pdf" pdf(file=filename, width=15, height=10) library(maps) require("mapproj") longlatLimit<-c(-106.65, -93.53 , 25.93 , 36.49) par(plt=c(0,1,0,1),cex=1,cex.main=1) #Set

Re: [R] map geographical boundaries

2008-11-03 Thread Ray Brownrigg
It's not clear exactly what you want, but try something like: library(maps) map("world", xlim=c(35, 100), ylim=c(-5, 35), interior=FALSE) lat= c(-5,0,5,10) long=c(35,40,45,50) points(long, lat, col=2) HTH, Ray Brownrigg On Tue, 04 Nov 2008, Yogesh Tiwari wrote: > Hello, > I want to crate a bla

[R] map geographical boundaries

2008-11-03 Thread Yogesh Tiwari
Hello, I want to crate a blanck geographical map showing continent boundary of region: latitude = -5:35 longitude = 35:100 If we create data like: lat= -5,0,5,10,.. long=35,40,45,50,. Then how to map (long,lat) and create a map plot. Many thanks, Yogesh [[alternative HTML

Re: [R] map points from scatterplot3d onto 2d fitted plane

2008-10-25 Thread Uwe Ligges
Jacqueline Hall wrote: Dear R helpers, I have a 3D scatter plot that I have generated from scatterplot3d (which looks great- thanks!) and I can see that the points in my graph fall in a plane. Following the example 5 from 3D scatter plot (below) I have fitted a regression plane. Now what I wou

Re: [R] map points from scatterplot3d onto 2d fitted plane

2008-10-23 Thread Dieter Menne
Jacqueline Hall googlemail.com> writes: > I have a 3D scatter plot that I have generated from scatterplot3d (which > looks great- thanks!) and I can see that the points in my graph fall in a > > Is there a package/function that can help me do this that I have missed? or > does anyone have any su

[R] map points from scatterplot3d onto 2d fitted plane

2008-10-23 Thread Jacqueline Hall
Dear R helpers, I have a 3D scatter plot that I have generated from scatterplot3d (which looks great- thanks!) and I can see that the points in my graph fall in a plane. Following the example 5 from 3D scatter plot (below) I have fitted a regression plane. Now what I would like to do is a rotation

Re: [R] map + some arbitrary locations' heights: some k ind of perspective or contour plot possible?

2008-10-10 Thread Roger Bivand
Werner Wernersen yahoo.de> writes: > > Hi, > > I thought about this but programming it seems rather difficult so I was > wondering if a function exists for > this in R (as most of the times it turns out that it does): > I have a map (shapefile) and for about 50 points on that map (GPS location

[R] map + some arbitrary locations' heights: some kind of perspective or contour plot possible?

2008-10-10 Thread Werner Wernersen
Hi, I thought about this but programming it seems rather difficult so I was wondering if a function exists for this in R (as most of the times it turns out that it does): I have a map (shapefile) and for about 50 points on that map (GPS locations) I have heights. Is there a function which can m

Re: [R] R Map using SAS data

2008-09-25 Thread Michael Friendly
Junjie, SAS map datasets are just ordinary data sets containing variables X, Y (lat/long), a region ID variable, perhaps a DENSITY variable (used to select lower-resolution versions), and perhaps a SEGMENT variable if a region has two or more disconnected polygons. For some maps, there is anot

Re: [R] R Map using SAS data

2008-09-23 Thread Roger Bivand
Junjie Zhang hotmail.com> writes: > > I'd like to plot some maps. Is it possible for me to use SAS map data in R? It is always a good idea to look at the Task Views on CRAN. In the Spatial Task View, you'll find a description of what you can do using contributed packages, but - as you would

[R] R Map using SAS data

2008-09-21 Thread Junjie Zhang
Hi there, I'd like to plot some maps. Is it possible for me to use SAS map data in R? Thank you. Best, Junjie _ your life. [[alternative HTML version deleted]] __ R-help@r-p

Re: [R] map("state" ...) Is the USA cracking up?

2008-08-16 Thread John Kane
Check your tectonic plates. You may have been using predict() to get those figures. --- On Fri, 8/15/08, John P. Burkett <[EMAIL PROTECTED]> wrote: > From: John P. Burkett <[EMAIL PROTECTED]> > Subject: Re: [R] map("state" ...) Is the USA cracking up? > To:

  1   2   >