Re: [R-sig-Geo] Newbie Question...

2010-01-04 Thread Edzer Pebesma
Michael Sumner wrote: Here's one way. I'm not sure about how to control the aspect ratio (something I've been meaning to check for a while now). somewhat of a non-newby answer to Michael: asp is set in plot.Spatial, and if the default value of NA is passed, set to: if (is.na(asp)) asp

Re: [R-sig-Geo] Newbie Question...

2010-01-04 Thread Michael Sumner
Here's one way. I'm not sure about how to control the aspect ratio (something I've been meaning to check for a while now). library(sp) data(volcano) x <- 10*(1:nrow(volcano)) y <- 10*(1:ncol(volcano)) ## image xyz list imlist <- list(x = x, y = y, z = volcano) ## SpatialGridDataFrame (image2Grid

[R-sig-Geo] Newbie Question...

2010-01-04 Thread Jason Rupert
At the suggestion of Walmes Zeviani I downloaded and am taking a look at the sp package. In an attempt to get going, can someone offer a suggestion about how to convert the below over to a version that uses the sp package? data(volcano) x <- 10*(1:nrow(volcano)) y <- 10*(1:ncol(volcano)) imag

Re: [R-sig-Geo] newbie rgdal projection problem

2010-01-04 Thread Roger Bivand
On Mon, 4 Jan 2010, Peter Adler wrote: Dear R-sig-geo, I am new to RGDAL and PROJ4, and am having trouble projecting a raster dataset. The dataset is a 721 x 721 cell raster of snow cover from the NSIDC. The projection information is here: http://nsidc.org/data/atlas/epsg_3408.html My com

[R-sig-Geo] newbie rgdal projection problem

2010-01-04 Thread Peter Adler
Dear R-sig-geo, I am new to RGDAL and PROJ4, and am having trouble projecting a raster dataset. The dataset is a 721 x 721 cell raster of snow cover from the NSIDC. The projection information is here: http://nsidc.org/data/atlas/epsg_3408.html My command: D=readGDAL("annual_snow_trend_ease

Re: [R-sig-Geo] Newbie question on shape files and mapping

2009-11-26 Thread Paul Hiemstra
Hi, Check out the spatial task view [1] and the R wiki [2]. cheers, Paul [1] http://cran.r-project.org/web/views/Spatial.html [2] http://wiki.r-project.org/rwiki/doku.php?id=tips:spatial-data GRIGNOLA, FERNANDO E [AG/6042] wrote: Hello, I'm working on a project using weather data mostly on t

[R-sig-Geo] Newbie question on shape files and mapping

2009-11-26 Thread GRIGNOLA, FERNANDO E [AG/6042]
Hello, I'm working on a project using weather data mostly on the statistical aspects of it, i.e. environmental classification. I have a bunch of shape files (*.dbf, *.prj, *.sbn, *.sbx, *.shp, *.shx) from different world regions and I would like to start using R to do the mapping of different clust

Re: [R-sig-Geo] newbie questions - maps

2009-11-16 Thread Paul Hiemstra
Ashton Shortridge wrote: On Monday 16 November 2009 08:53:03 Carson Farmer wrote: ... In addition, I use linux (Debian) and the desktop GIS tools that I tried (svSig, Qgis, and some more) did not provide publication quality maps. I would strongly suggest you take another look at some

Re: [R-sig-Geo] newbie questions - maps

2009-11-16 Thread Ashton Shortridge
On Monday 16 November 2009 08:53:03 Carson Farmer wrote: > >... In addition, I use linux (Debian) and the desktop GIS tools that > > I tried (svSig, Qgis, and some more) did not provide publication quality > > maps. > > I would strongly suggest you take another look at some of these > packages (es

Re: [R-sig-Geo] newbie questions

2009-11-16 Thread Edzer Pebesma
Roger Bivand wrote: ... > Including a code snippet demonstrating your problem and posting a link > to a simple data set (shape file plus election data) would be a more > constructive way to proceed, no? The code in Ch 5 in our book on > www.asdar.org covers a very similar case, ... The book lin

Re: [R-sig-Geo] newbie questions

2009-11-16 Thread Roger Bivand
On Sun, 15 Nov 2009, tom sgouros wrote: Roger Bivand wrote: I'm trying to make some simple maps of election results and I am having some trouble. I'm hoping to use Grass (or QGis) to make the maps, but apparently this requires getting my data into the shape files, and I can't figure out ho

Re: [R-sig-Geo] newbie questions

2009-11-16 Thread Roger Bivand
On Mon, 16 Nov 2009, Karl Ove Hufthammer wrote: On Sun, 15 Nov 2009 19:52:48 +0100 (CET) Roger Bivand wrote: Do use readShapeSpatial() (or better readOGR() in rgdal) Why (or how) is readOGR better? Because it uses OGR, with an updated rather than frozen shapelib, and reads the *.prj file

Re: [R-sig-Geo] newbie questions

2009-11-16 Thread Carson Farmer
>... In addition, I use linux (Debian) and the desktop GIS tools that > I tried (svSig, Qgis, and some more) did not provide publication quality > maps. I would strongly suggest you take another look at some of these packages (especially QGIS). These are relatively young projects, and are growing

Re: [R-sig-Geo] newbie questions

2009-11-16 Thread Julian Burgos
Hello all, An alternative to create (possibly simple) shapefiles is the "shapefiles" package. http://cran.r-project.org/web/packages/shapefiles/index.html. Also the "PBSmapping" package is a very good alternative to make maps within R, and to perform basic GIS operations (i.e. overlap of poly

Re: [R-sig-Geo] newbie questions

2009-11-16 Thread Paul Hiemstra
Raphael Saldanha wrote: Hi Tom! I'm a geographer and R enthusiast too, but what I can say is: R is a great software to statistics. The final production of maps, although it's possible, it's simple and faster made with GIS softwares, like GRASS, Quantum GIS or ArcGIS. Hi, As you already stat

Re: [R-sig-Geo] newbie questions

2009-11-16 Thread Karl Ove Hufthammer
On Sun, 15 Nov 2009 19:52:48 +0100 (CET) Roger Bivand wrote: > Do use readShapeSpatial() (or better readOGR() in rgdal) Why (or how) is readOGR better? -- Karl Ove Hufthammer ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.c

Re: [R-sig-Geo] newbie questions

2009-11-15 Thread Alex Mandel
tom sgouros wrote: > Alex Mandel wrote: > >> This could be done easily in either QGIS or R. I would leave GRASS out >> of the discussion for now if we're just talking about making a map and >> bring it back in if you start wanting to analyze the spatial >> relationship between your data and other

Re: [R-sig-Geo] newbie questions

2009-11-15 Thread Alex Mandel
tom sgouros wrote: > tom sgouros wrote: > >> Dan Putler wrote: > >>> Er, what exactly is your data? Do you have data that is linked to zip >>> codes and you want to do a "thematic" (choropleth) map of the data? Do >>> you have point data (say a lat/lon values), and want to plot the points? >>>

Re: [R-sig-Geo] newbie questions

2009-11-15 Thread Dan Putler
I'd go with the shapefiles, the E00 files are ArcInfo export format files, and it is very likely you would convert to shapefile sets along the way. Dan On Sun, 2009-11-15 at 23:27 -0500, tom sgouros wrote: > tom sgouros wrote: > > > > > Dan Putler wrote: > > > > Er, what exactly is your data

Re: [R-sig-Geo] newbie questions

2009-11-15 Thread Alex Mandel
tom sgouros wrote: > Dan Putler wrote: > >> Tom, >> >> Er, what exactly is your data? Do you have data that is linked to zip >> codes and you want to do a "thematic" (choropleth) map of the data? Do >> you have point data (say a lat/lon values), and want to plot the points? >> Given what you've s

Re: [R-sig-Geo] newbie questions

2009-11-15 Thread tom sgouros
tom sgouros wrote: > > Dan Putler wrote: > > Er, what exactly is your data? Do you have data that is linked to zip > > codes and you want to do a "thematic" (choropleth) map of the data? Do > > you have point data (say a lat/lon values), and want to plot the points? > > Given what you've said

Re: [R-sig-Geo] newbie questions

2009-11-15 Thread tom sgouros
Dan Putler wrote: > Tom, > > Er, what exactly is your data? Do you have data that is linked to zip > codes and you want to do a "thematic" (choropleth) map of the data? Do > you have point data (say a lat/lon values), and want to plot the points? > Given what you've said, hard to figure out how

Re: [R-sig-Geo] newbie questions

2009-11-15 Thread Dan Putler
Tom, Er, what exactly is your data? Do you have data that is linked to zip codes and you want to do a "thematic" (choropleth) map of the data? Do you have point data (say a lat/lon values), and want to plot the points? Given what you've said, hard to figure out how to get you going in the right di

Re: [R-sig-Geo] newbie questions

2009-11-15 Thread tom sgouros
Raphael Saldanha wrote: > Hi Tom! > > I'm a geographer and R enthusiast too, but what I can say is: R is a great > software to statistics. The final production of maps, although it's > possible, it's simple and faster made with GIS softwares, like GRASS, > Quantum GIS or ArcGIS. This is exactl

Re: [R-sig-Geo] newbie questions

2009-11-15 Thread Raphael Saldanha
Hi Tom! I'm a geographer and R enthusiast too, but what I can say is: R is a great software to statistics. The final production of maps, although it's possible, it's simple and faster made with GIS softwares, like GRASS, Quantum GIS or ArcGIS. My tip is: organize data with spreadsheet and GIS sof

Re: [R-sig-Geo] newbie questions

2009-11-15 Thread tom sgouros
Roger Bivand wrote: > > I'm trying to make some simple maps of election results and I am having > > some trouble. I'm hoping to use Grass (or QGis) to make the maps, but > > apparently this requires getting my data into the shape files, and I > > can't figure out how to do that. I've found re

Re: [R-sig-Geo] newbie questions

2009-11-15 Thread Roger Bivand
On Sun, 15 Nov 2009, Tom Sgouros wrote: Hello all: I'm trying to make some simple maps of election results and I am having some trouble. I'm hoping to use Grass (or QGis) to make the maps, but apparently this requires getting my data into the shape files, and I can't figure out how to do that

[R-sig-Geo] newbie questions

2009-11-15 Thread Tom Sgouros
Hello all: I'm trying to make some simple maps of election results and I am having some trouble. I'm hoping to use Grass (or QGis) to make the maps, but apparently this requires getting my data into the shape files, and I can't figure out how to do that. I've found read.shape and that's great,

[R-sig-Geo] Newbie question: Reclassifying raster (ndvi) using fisher method

2008-11-01 Thread Agustin Lobo
AIL PROTECTED]> Subject: [R-sig-Geo] Newbie question: Reclassifying raster (ndvi) using fisher method To: [EMAIL PROTECTED], "r-sig-geo@stat.math.ethz.ch" Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain Hi all, I am not sure as to which list

[R-sig-Geo] Newbie question: Reclassifying raster (ndvi) using fisher method

2008-10-31 Thread Edward Tomlinson
Hi all, I am not sure as to which list this best fits (Grass or R-sig-geo). I am trying to reclass a raster map (ndvi) into 5 different zones using the fisher method, ultimatley i am trying to reclass as natural breaks. The point of this exercise is for precision agriculture. I want to determine

Re: [R-sig-Geo] newbie: spplot/ colour ramps

2008-04-08 Thread Edzer Pebesma
Oehler, Friderike (AGPP) wrote: > Thanks Edzer, I shall try again: > > 1) I would like to use spplot to map my factor "TYP" as dots of different > colours, however the resulting plot uses the same colours for the first and > last value (10,40). I guess that my use of the "cuts" argument is wrong, b

Re: [R-sig-Geo] newbie: spplot/ colour ramps

2008-04-08 Thread Oehler, Friderike (AGPP)
Thanks Edzer, I shall try again: 1) I would like to use spplot to map my factor "TYP" as dots of different colours, however the resulting plot uses the same colours for the first and last value (10,40). I guess that my use of the "cuts" argument is wrong, but I can't find any better: LAT <-c(-6.

Re: [R-sig-Geo] newbie: spplot/ colour ramps

2008-04-07 Thread Edzer Pebesma
Oehler, Friderike (AGPP) wrote: > Dear list members, > > I am still struggeling with spplot. Sorry for being that unprofessional, but > honestly I find the spplot help page quite hard to understand. (Many thanks > Edzer for the very helpful hint a few days ago.) > > 1) My first plot actually works

[R-sig-Geo] newbie: spplot/ colour ramps

2008-04-07 Thread Oehler, Friderike (AGPP)
Dear list members, I am still struggeling with spplot. Sorry for being that unprofessional, but honestly I find the spplot help page quite hard to understand. (Many thanks Edzer for the very helpful hint a few days ago.) 1) My first plot actually works all fine, but the colours seem to loop, i.e.

Re: [R-sig-Geo] newbie sp question

2007-06-25 Thread Edzer J. Pebesma
Roger Bivand wrote: > It may also be worth asking on the PostGIS list whether you could upload > your geometries to PostGIS and have GEOS do the measurement - if you have > access to the software and experience with it. It may be that it can > handle geographical coordinates. > I have to be

Re: [R-sig-Geo] newbie sp question

2007-06-17 Thread Roger Bivand
On Sat, 16 Jun 2007, David Hugh-Jones wrote: > Thank you for this help. I realised after writing this that indeed, > spatstat won't work because I have world-scale data in unprojected > latitude/longitude form... so my distance measure is no use. This > leads to more questions > > - is there a can

Re: [R-sig-Geo] newbie sp question

2007-06-16 Thread David Hugh-Jones
Thank you for this help. I realised after writing this that indeed, spatstat won't work because I have world-scale data in unprojected latitude/longitude form... so my distance measure is no use. This leads to more questions - is there a canonical way to convert projections from within "sp"? My cu

Re: [R-sig-Geo] newbie sp question

2007-06-16 Thread Roger Bivand
On Fri, 15 Jun 2007, David Hugh-Jones wrote: > Hi R-spatialists, > > I'm working with a big list of polygons (imported into R with package > sp as a SpatialPolygonDataFrame, and I am trying to calculate minimum > distances between each pair of polygons. For this, I need to get the > lines for each

[R-sig-Geo] newbie sp question

2007-06-15 Thread David Hugh-Jones
Hi R-spatialists, I'm working with a big list of polygons (imported into R with package sp as a SpatialPolygonDataFrame, and I am trying to calculate minimum distances between each pair of polygons. For this, I need to get the lines for each polygons. At the moment I can't seem to find a way to do

Re: [R-sig-Geo] Newbie Questions

2006-12-20 Thread Scionforbai
Hallo, just a couple hints: > In other words, I would like to know if there is a relationship between yield > and phosphorus, taking into account the spatial dependence. But how can I > test this? I think you should look at the cross-variograms. Or did you already reject this option? > Anothe

Re: [R-sig-Geo] Newbie Questions

2006-12-20 Thread Danlin Yu
Montclair State University Montclair, NJ, 07043 Tel: 973-655-4313 Fax: 973-655-4072 email: [EMAIL PROTECTED] - Original Message - From: "GRETA G. GRAMIG" <[EMAIL PROTECTED]> Date: Wednesday, December 20, 2006 11:57 am Subject: [R-sig-Geo] Newbie Questions > I have lim

[R-sig-Geo] Newbie Questions

2006-12-20 Thread GRETA G. GRAMIG
I have limited experience with spatial analysis, but I am trying to learn. Perhaps someone with patience for a newbie will field my questions? If this is not the appropriate forum for such questions perhaps someone could suggest a more appropriate forum. I have a small dataset that consists of

Re: [R-sig-Geo] newbie: Moran's I

2006-11-03 Thread Roger Bivand
On Fri, 3 Nov 2006, Jeffrey Stratford wrote: > Hi. > > Does anyone have an example of estimating Moran's I from a file with > point (not polygon) data? I'm getting close(r) but I still have a few > problems. > > Here's my code so far: > > library(spdep) > ctpoints <- read.csv("c:\\Georgia\\xy.

[R-sig-Geo] newbie: Moran's I

2006-11-03 Thread Jeffrey Stratford
Hi. Does anyone have an example of estimating Moran's I from a file with point (not polygon) data? I'm getting close(r) but I still have a few problems. Here's my code so far: library(spdep) ctpoints <- read.csv("c:\\Georgia\\xy.csv", header=TRUE) # only two columns containing the long-lat data

[R-sig-Geo] Newbie!

2006-06-25 Thread Raphael Saldanha
Hi! My name is Raphael Saldanha, I'm a student in Brazil. I'm using R by the first time now (and maybe my english too! hehehe), it's really a very good program for spatial data analysis. But I have some questions: 1. How can I discard some variables using princomp with a dataframe? 2. Watch is t

Re: [R-sig-Geo] newbie: getting started

2005-12-01 Thread danlinyu
Jeff: SPDEP might be the package where you can find numerous functions and tests for your data. Hope this helps. Danlin Jeffrey Stratford <[EMAIL PROTECTED]>: > Greetings! I would appreciate some feedback as to where you think a > newbie should start when learning spatial stats with R. > >

[R-sig-Geo] newbie: getting started

2005-11-28 Thread Jeffrey Stratford
Greetings! I would appreciate some feedback as to where you think a newbie should start when learning spatial stats with R. I have avian point count data and landscape data (Landsat) over a 70 by 40 km area that I would like to start analyzing. I have already, developed some relationships betw

[R-sig-Geo] newbie question in fitting data to surfaces

2005-09-27 Thread Molins, Jordi
Just an addition to the question I have asked before: one easy way would be to fit: - a global constant (to account for the average of the points of the matrix); - a plane to account for linear terms (in the example below, it should be a plane with both negative partial derivatives with respect "

[R-sig-Geo] newbie question in fitting data to surfaces

2005-09-27 Thread Molins, Jordi
Hello, I am new in this list. I have a problem and I think that the solution to this problem can be found using spatial statistics, but I do not know how. My problem is the following: I have a matrix of data, of around 6 rows and 5 columns. In reality, I have a time series, where at each point i