Re: [R-sig-Geo] calculate SSerror in fit.variogram

2012-06-28 Thread Paul Hiemstra
man/listinfo/r-sig-geo Assuming the result of 'fit.variogram' is in the variable 'spam', this will get you the SSErr: attr(spam, "SSErr") cheers, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 1

Re: [R-sig-Geo] Projected data in R-Gstat

2012-05-15 Thread Paul Hiemstra
fitting. > > http://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system > > might point you to the appropriate zone. ...in addition, for reprojection of data you can use the spTransform function from the rgdal package. regards, Paul > With best regards, >> >&g

Re: [R-sig-Geo] read MODIS image in HDF format

2012-04-11 Thread Paul Hiemstra
__ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo You can use rgdal with the hdf5 driver installed. good luck, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI

Re: [R-sig-Geo] Variable point size with spplot

2012-03-28 Thread Paul Hiemstra
oord_equal() + scale_x_continuous("", breaks = NULL) + scale_y_continuous("", breaks = NULL)) # ...and couple the color to the ffreq: gg = ggplot(aes(x = x, y = y, size = om, color = ffreq), data = meuse) + geom_point() print(gg + coord_equal() + scale_x_continuous(

Re: [R-sig-Geo] Saving plot as PDF from functions levelplot and gplot from rasterVis package

2012-03-22 Thread Paul Hiemstra
ailing list >>> R-sig-Geo@r-project.org >>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo >>> >>> >> >> -- >> In God we trust, all others bring data. >> > > > > ___ > R-sig-Geo mailing

Re: [R-sig-Geo] installing rgdal on linux without root access

2012-02-27 Thread Paul Hiemstra
to your .bashrc and restart a terminal. Now it should be possible to install rgdal without manually specifying the location of the executables and libraries, because they are in the search path. cheers, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute

Re: [R-sig-Geo] an ArcGIS question

2012-02-27 Thread Paul Hiemstra
On 02/27/2012 10:22 AM, Paul Hiemstra wrote: > On 02/26/2012 08:24 PM, Hodgess, Erin wrote: >> Hi R Sig Geo People: >> >> May I ask an ArcGIS question here, or should I try to find an ArcGIS group, >> please? >> >> >> >> Erin M. Hodgess, PhD &

Re: [R-sig-Geo] fortify.SpatialPolygonsDataFrame error

2012-02-27 Thread Paul Hiemstra
r, I have a hard time helping you. Some notes: - Try fortify(NUTS1, region = "id") on the unaltered NUTS1 object, i.e. just after calling readShapeSpatial. If this works, the problem is not in fortify, but in your code. - There is no need to call fortify.SpatialPolygonsDataFrame e

Re: [R-sig-Geo] an ArcGIS question

2012-02-27 Thread Paul Hiemstra
nd there are a lot of ArcGIS questions there (and also a lot of know how I assume). good luck, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.O. Box 201 | 3730 AE | De Bilt tel: +31 30 2

Re: [R-sig-Geo] making Principal Component Analysis with large raster

2012-02-23 Thread Paul Hiemstra
the cov. matrix of a 2 GB data file with almost no memory usage. cheers, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.O. Box 201 | 3730 AE | De Bilt tel: +31 30 2206 494 h

Re: [R-sig-Geo] rgdal loading problem...

2012-02-09 Thread Paul Hiemstra
todetected) > > I suspect something is going on with the environment variables between the > Stat-ET launching of R, and the command-line launching. A Sys.getenv() > reveals that the environment variables are different, but I'm unclear which > variable(s?) I should be lo

Re: [R-sig-Geo] AutoKrige.cv error

2012-02-09 Thread Paul Hiemstra
L version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminala

Re: [R-sig-Geo] HDF format

2012-01-26 Thread Paul Hiemstra
nInfo() command. Give us more to work with, or it will be very hard to help you. regards, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.O. Box 201 | 3730 AE | De Bilt tel: +31 30 2206

Re: [R-sig-Geo] spdep and server

2011-12-01 Thread Paul Hiemstra
ituto di Fisiologia Clinica > Pisa Italia > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorolo

Re: [R-sig-Geo] units is semivariograms in GeoR

2011-11-16 Thread Paul Hiemstra
units (m/s)^2. For the x-axis they are most probably the distance unit in which the coordinate system of your data set is, e.g. kilometer. hope this helps, Paul On 11/16/2011 03:08 PM, carolina monmany wrote: -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute

Re: [R-sig-Geo] Package ‘plotGoogleMaps’

2011-10-27 Thread Paul Hiemstra
Hi, Please provide a reprodicble example which shows this problem. This makes it much easier for us to understand what your problem exactly is and help you solve it. good luck, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 |

Re: [R-sig-Geo] rgdal installation - libraries in non-standard locations

2011-10-25 Thread Paul Hiemstra
y success. > > Thanks > Javier > ... > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological In

Re: [R-sig-Geo] Compare.cv write to csv

2011-10-24 Thread Paul Hiemstra
gt; > Please advice > > > I want the datframe in a csv file where i can edit this > > > ,also i have to batch process this so cant do many changes > > > manually. > > > Thanks in advance > > > Sandeep > > [[alternative HTML version deleted]] >

Re: [R-sig-Geo] errors in installing HDF5 package under windows

2011-10-17 Thread Paul Hiemstra
please give me more instructions on how to fix this? > Thanks a lot. > > On Mon, Oct 17, 2011 at 3:42 PM, Paul Hiemstra <mailto:paul.hiems...@knmi.nl>> wrote: > > On 10/16/2011 02:10 PM, zhijie zhang wrote: > > cygwin warning: > > MS-DOS style path detect

Re: [R-sig-Geo] Delete points within a certain distance of each other

2011-10-17 Thread Paul Hiemstra
gt; > Sandeep > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo ?spDists, ?zerodist Paul -- Paul Hiemstra, Ph.D. Global Climate Division

Re: [R-sig-Geo] errors in installing HDF5 package under windows

2011-10-17 Thread Paul Hiemstra
nt variable option "nodosfilewarning" turns off this > warning. Have you tried this suggestion? Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.O. Box 201 | 3730 AE | De

Re: [R-sig-Geo] Quick poll -- favorite GIS textbook?

2011-10-12 Thread Paul Hiemstra
berg.html >> >> ___ >> R-sig-Geo mailing list >> R-sig-Geo@r-project.org >> https://stat.ethz.ch/mailman/listinfo/r-sig-geo >> > [[alternative HTML version deleted]] > > ___ > R-

Re: [R-sig-Geo] Quick poll -- favorite GIS textbook?

2011-10-12 Thread Paul Hiemstra
nell. I think the book is ok, especially when teaching to under graduates. It covers a wide range of topics and does not explicitely use one type of software (e.g. ArcGIS). regards, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan

Re: [R-sig-Geo] Logarithmic legend

2011-10-06 Thread Paul Hiemstra
> > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institut

Re: [R-sig-Geo] "Theta" value in Fields library for Tps

2011-10-06 Thread Paul Hiemstra
> R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.

Re: [R-sig-Geo] Great Circle distances in Automap, Gstat

2011-10-06 Thread Paul Hiemstra
e welcome >> >> Thanks >> >> Sandeep >> >> [[alternative HTML version deleted]] >> >> _______ >> R-sig-Geo mailing list >> R-sig-Geo@r-project.org >> https://stat.ethz.ch/mailman/listinfo/r-sig-geo > -- P

Re: [R-sig-Geo] Working with GRIB2 files

2011-10-05 Thread Paul Hiemstra
th programming, but determined to figure this out. > What exactly do you mean by rebuild? I use the OSGeo4W package to > update gdal every few months, so I think I have the most recent > version. > > Thanks, > Ezra > > > > On Mon, Oct 3, 2011 at 3:21 AM, Paul Hiemstra wrote: &g

Re: [R-sig-Geo] Advice on Cross validation_ Computational limits of spatial interpolation

2011-10-05 Thread Paul Hiemstra
ce will they be willing to exchange a few emails? > > > Thanks > > -- > Sandeep R Patil > Graduate Student > M.S (Hydrological Sciences) > -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | K

Re: [R-sig-Geo] Working with GRIB2 files

2011-10-03 Thread Paul Hiemstra
icular, I need to get forecast data >> into a format where I can overlay a shapefile, but the wqgrib2 program >> won't work because hybrid coordinate system. >> >> Thanks, >> Ezra > -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands

Re: [R-sig-Geo] Gstat - Installation Fail _ download source and compile help ...

2011-10-03 Thread Paul Hiemstra
esirable scenario, insert the > needed "#include " in the given *.c file yourself and > compile. > * > Can anyone make out anything from this , i want to tweak the configure > command but do not know how to proceed.. > > Sandeep > > [[alternative HTML versi

Re: [R-sig-Geo] SpatialGridDataFrame

2011-09-27 Thread Paul Hiemstra
ntDataFrame coming from grass point vector data, > who have an irregular boundary and 5 km spaced. > > Any hits are very appreced, > bast regards > > Eugenio > > [[alternative HTML version deleted]] > > _

Re: [R-sig-Geo] downscaling grid data; alternative for interp()?

2011-09-22 Thread Paul Hiemstra
archive at Nabble.com. > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaa

Re: [R-sig-Geo] help to change charactwer name in a row of data.frame

2011-09-22 Thread Paul Hiemstra
ight >> >> Gianni >> >>[[alternative HTML version deleted]] >> >> ___ >> R-sig-Geo mailing list >> R-sig-Geo@r-project.org >> https://stat.ethz.ch/mailman/listinfo/r-sig-geo >> > [[alter

Re: [R-sig-Geo] Read statement in R advanced

2011-09-21 Thread Paul Hiemstra
provding us with a small piece of code that reproduces your problem would be of great help here. regards, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.O. Box 201 | 3730 AE | De Bilt

Re: [R-sig-Geo] Spatial Interpolation Cross Validation

2011-09-21 Thread Paul Hiemstra
il/r-sig-geo/2010-December/010363.html I sent you the scripts off-list, which includes example code. good luck, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.O. Box 201 | 3730 AE | De B

Re: [R-sig-Geo] classes available with "R"

2011-09-21 Thread Paul Hiemstra
courses on spatial statistics. They are, however, often in Europe. But as you are willing to travel all across the North-Americas, a trip to Europe might also be worthwhile... good luck, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelmi

Re: [R-sig-Geo] write estimates to Excel

2011-09-19 Thread Paul Hiemstra
https://stat.ethz.ch/mailman/listinfo/r-sig-geo Hi, Saving the file as a comma separated file (csv) should be fine for reading in Excel. See the write.csv function. good luck, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10

Re: [R-sig-Geo] complex functions using aggregate

2011-09-15 Thread Paul Hiemstra
Evolution >> Stony Brook University >> >>[[alternative HTML version deleted]] >> >> ___ >> R-sig-Geo mailing list >> R-sig-Geo@r-project.org >> https://stat.ethz.ch/mailman/listinfo/r-sig-geo >> &g

Re: [R-sig-Geo] spplot for raster not drawn

2011-09-13 Thread Paul Hiemstra
1] "" > > $major > [1] "2" > > $minor > [1] "13.1" > > $year > [1] "2011" > > $month > [1] "07" > > $day > [1] "08" > > $`svn rev` > [1] "56322" > > $language > [1] "R"

Re: [R-sig-Geo] Read HDF files

2011-09-02 Thread Paul Hiemstra
upport. Alternatively, find a (command)-line tool which can translate HDF5 to geotiff or netCDF (e.g. gdal_translate or ) and then use readGDAL or the ncdf package. Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732

Re: [R-sig-Geo] krige error

2011-08-23 Thread Paul Hiemstra
orks perfectlyAny ideas? > > > > regards, m > > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo -- Paul Hiemstra, Ph.D. Glo

Re: [R-sig-Geo] A one to many merge involving a spatial data frame object

2011-08-15 Thread Paul Hiemstra
ite? I can guess the > query looks like: SELECT * FROM table1 AS a, the_geom FROM table2 AS b > WHERE a.id = b.id > > Dan > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Re: [R-sig-Geo] alpha parameter in autofitVariogram

2011-07-21 Thread Paul Hiemstra
Dear Sweta J.P., The function autofitvariogram does not support fitting anisotropic variograms. The function does do something however. The example below illustrates what happens (under the hood automap uses fit.variogram to fit the variogram): library(automap) loadMeuse() # No anisotropy vgm1

Re: [R-sig-Geo] raw residual calculation

2011-07-21 Thread Paul Hiemstra
https://stat.ethz.ch/mailman/listinfo/r-sig-geo Hi, As I understand your (brief) question, take a look at the residuals generic function. lm.cars = lm(speed~dist, cars) residuals(lm.cars) cheers, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KN

Re: [R-sig-Geo] Assign a point to its nearest polygon

2011-06-16 Thread Paul Hiemstra
ongitude-latitude.html>? > > > Thanks in advance, any help would be appreciated > > Mathieu > > [[alternative HTML version deleted]] > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz

Re: [R-sig-Geo] raster::plot() common color scale?

2011-06-14 Thread Paul Hiemstra
om the R-sig-geo mailing list archive at Nabble.com. > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorol

Re: [R-sig-Geo] raster::plot() common color scale?

2011-06-10 Thread Paul Hiemstra
alues)? > The color table is the same, but the scaling is independent for each > raster object and cannot be compared. > > Thanks > > Agus > > ___ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailm

Re: [R-sig-Geo] 2-D Scatter Plots from the Image

2011-05-30 Thread Paul Hiemstra
Take a look at any of the plotting packages in R: the standard plotting, lattice or ggplot (I prefer the latter). Using the standard plotting facilities: library(gstat) loadMeuse() plot(meuse.grid$dist, meuse.grid$soil) cheers, Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Me

Re: [R-sig-Geo] plot order in spplot with sp.layout

2011-05-24 Thread Paul Hiemstra
try: spplot(meuse.grid, sp.layout=list("sp.polygons", meuse.riv, first = FALSE)) I added this now to the spplot documentation. Thanks! Tom -- Paul Hiemstra, Ph.D. Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 8

Re: [R-sig-Geo] Logit model in R commander

2011-04-11 Thread Paul Hiemstra
[[alternative HTML version deleted]] > > > > _______ > R-sig-Geo mailing list > R-sig-Geo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-geo -- Paul Hiemstra, MSc Global Climate Division Royal Netherlands Meteorologica

Re: [R-sig-Geo] Raster package

2011-04-07 Thread Paul Hiemstra
On 04/08/2011 08:34 AM, Paul Hiemstra wrote: > On 04/07/2011 11:26 PM, Narayani Barve wrote: >> Hi All, >> >> I am using raster package for various operations. It is a useful package, >> but manual / pdf contains lines which are broken and not complete. This >> ha

Re: [R-sig-Geo] Raster package

2011-04-07 Thread Paul Hiemstra
ou can read the documentation online using R itself, which does show all the text. cheers, Paul -- Paul Hiemstra, MSc Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.O. Box 201 | 3730 AE | De Bilt tel: +31 30 2206

Re: [R-sig-Geo] Residual variogram from known trend

2011-04-06 Thread Paul Hiemstra
l > > I see it's possible to calculate the residuals with > > residuals(lm(zinc~sqrt(dist), meuse)) > > and pass them directly. But I wonder whether a more convenient direct > passing of the trend coefficients is possible. > > Thanks! > Tom > -- Paul Hiemstra, MS

Re: [R-sig-Geo] passing 'cutoff' to the 'autoKrige' function ('automap' package)

2011-03-28 Thread Paul Hiemstra
On 03/28/2011 10:47 AM, Mauricio Zambrano wrote: 2011/3/26 Paul Hiemstra: Hi, The miscFitOptions parameter does not include the 'variogram' paramters. I will look into adding them, together with the option to set the boundaries manually. However, autofitVariogram at this stage

Re: [R-sig-Geo] passing 'cutoff' to the 'autoKrige' function ('automap' package)

2011-03-26 Thread Paul Hiemstra
27;cutoff' passed to the 'autofitVariogram' function. In any case, I think that even after solving the issue related to 'cutoff' and 'boundaries', it will still be impossible to pass the 'cutoff' argument to the 'autoKrige' function, because the

Re: [R-sig-Geo] using IDW with anisotropy

2011-03-18 Thread Paul Hiemstra
R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo -- Paul Hiemstra, MSc Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.O. Box

Re: [R-sig-Geo] sample semivariogram use, retrieving anisotropic parameters, subsampling

2011-03-17 Thread Paul Hiemstra
I think I know > > If I don't know I know > I think I don't know > > -- Knots > R.D. Laing > > [[alternative HTML version deleted]] > > __

Re: [R-sig-Geo] Function to smooth grids using n x n window moving average (low-pass filter)

2011-02-21 Thread Paul Hiemstra
or even faster. cheers, Paul -- Paul Hiemstra, MSc Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 253 5773 http://intamap.geo.uu.nl/~paul http://nl.linkedin.com/pub/paul-hiemstra/20/30b/770 c

Re: [R-sig-Geo] bayesian kriging

2011-02-21 Thread Paul Hiemstra
Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo Hi TM, See the geoR package. Paul -- Paul Hiemstra, MSc Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 253 5773 http://intamap.geo.uu.nl/

Re: [R-sig-Geo] How to overlay world map using non-standard projection

2011-01-20 Thread Paul Hiemstra
x27;x' and 'y' axis. Since the projection I'm trying to use dictates the ratio between the x and y axis, I don't understand how this can be. Any suggestion on how to proceed would be greatly appreciated.. Thanks, Elena -- Paul Hiemstra, MSc Department of Physical Geogra

Re: [R-sig-Geo] Adding a scale bar and north arrow to a ggplot

2010-12-16 Thread Paul Hiemstra
ger Bivand: On Wed, 15 Dec 2010, Paul Hiemstra wrote: Hi people, I posted a similar question to the ggplot2 mailing list and with their help and a lot of tinkering I got a well working function to add a scalebar to a ggplot plot. I could add the function to automap, but is there anoth

Re: [R-sig-Geo] Adding a scale bar and north arrow to a ggplot

2010-12-15 Thread Paul Hiemstra
On 12/15/2010 09:53 AM, Roger Bivand wrote: On Wed, 15 Dec 2010, Paul Hiemstra wrote: Hi people, I posted a similar question to the ggplot2 mailing list and with their help and a lot of tinkering I got a well working function to add a scalebar to a ggplot plot. I could add the function to

Re: [R-sig-Geo] Adding a scale bar and north arrow to a ggplot

2010-12-15 Thread Paul Hiemstra
, size = 6, data = textScaleBar, hjust = 0.5, vjust = 1.2, legend = FALSE)) } library(ggplot2) library(sp) data(meuse) data(meuse.grid) ggobj = ggplot(aes(x = x, y = y, color = zinc), data = meuse) + geom_point() # Make sure to increase the graphic device a bit addScaleBar(ggobj, meuse, &quo

[R-sig-Geo] Cross-validating across spatial interpolation packages

2010-12-14 Thread Paul Hiemstra
tcome of the krige function. #' @author Paul Hiemstra, \email{p.h.hiems...@gmail.com} #' @export #' @examples #' data(meuse) #' coordinates(meuse) = ~x+y #' data(meuse.grid) #' gridded(meuse.grid) = ~x+y #' #' meuse_tps = doTps(zinc~dist, meuse, meuse.gr

Re: [R-sig-Geo] Spatial interpolation possibilities

2010-12-14 Thread Paul Hiemstra
listinfo/r-sig-geo -- Paul Hiemstra, MSc Department of Physical Geography Faculty of Geosciences University of Utrecht Heidelberglaan 2 P.O. Box 80.115 3508 TC Utrecht Phone: +3130 253 5773 http://intamap.geo.uu.nl/~paul http://nl.linkedin.com/pub/paul-hiemstra/20/30b/770