Displaying 20 results from an estimated 7000 matches similar to: "plotting the coordinates versus dates"
2009 Jun 10
2
plot two variograms on a same graph
Hi,
I would know how to plot two variograms on a same graph. I can plot one by one but I would draw both on the same one.
Is it possible? Do i need any special package?
Thanks!
Cordialement
Damien Landais
2009 Dec 11
3
Please help with a basic function
Hello,
I am learning how to use functions, but I'm running into a roadblock.
I would like my function to do two things: 1) convert an object to a
dataframe, 2) and then subset the dataframe. Both of these commands work
fine outside the function, but I would like to wrap them in a function so I
can apply the code iteratively to many such objects.
Here's what I wrote, but it doesn't
2009 Mar 24
1
Variogram with Gstat
Dear all can you help me? i have this problem: i have a dataset in a text file
in a matrix of 3 columns: x, y, z where x and y are the coordinates and Z are
the mesurements. How can i do a variogram with R?
2018 May 20
1
How to average values from grid cells with coordinates
Hi lily,
It's not too hard to do it using dataframes. Getting the indexing
right is usually that hardest part:
# these values are the centers of the black cells
lat<-rep(28:38,11)
lon<-rep(98:108,each=11)
pop<-sample(80:200,121)
# just use the data.frame function
blackcells<-data.frame(lat=lat,lon=lon,pop=pop)
plot(0,type="n",xlim=c(97.5,108.5),ylim=c(27.5,38.5),
2018 May 16
5
How to average values from grid cells with coordinates
Hi R users,
I have a question about data processing. I have such a dataset, while each
black grid cell has a few attributes and the corresponding attribute
values. The latitude and longitude of the center of each grid cell are
given also.
Then I want to average the attribute values from four adjacent grid cells
to get the average value for the center of each red grid cell. Thus, there
are the
2018 May 16
0
How to average values from grid cells with coordinates
Hi lily,
There are one or two assumptions to be made here. First is that the
latitude and longitude values of the "black" cells are equally spaced
as in your illustration. Second, that all latitude and longitude
values for the "red" cells fall at the corners of four "black" cells.
You can get the four "black" cells by finding the lat/lon values that
are
2018 May 22
0
How to average values from grid cells with coordinates
Hi Jim,
Thanks. It works. I now have more complex problems. If at each blackcell,
there are two variables such as pop and mood. For each variable, there are
daily records in one year, so 365 records for pop and 365 records for mood.
The averaged values for the redcells should be daily records too. What kind
of format do you recommend for this problem? Right now, I just get the
latitudes and
2004 Jun 01
1
converting text coordinates to decimal degrees
I receive GPS readings in a text string such as
"0121.6723S 03643.6893E" and need the coordinates as
decimal degrees in two separate variables: "-1.361205"
and "36.728155". How do I do this in R?
mikkel
2005 Sep 14
4
Converting coordinates to actual distances
Hello,
I've been searching for a method of converting Lat/Lon decimal
coordinates into actual distances between points, and taking into
account the curvature of the earth. Is there such a package in R? I've
looked at the GeoR package, but this does not seem to contain what I am
looking for. Ideally the output would be a triangular matrix of
distances.
Thanks in advance,
Paul Brewin
2008 Apr 01
1
spatial cross-correlation
Hi;
I cannot find in the R html documentation a way to evaluate
cross-correlation in 2D data sets.
I would like to evaluate cross-correlation in a series of moving windows
between two maps.
i,e, specify several windows inside the complete 2D spatial matrixes and
for each one ofthese windows evaluate the 2D cross-correlation (commonly
conducted in the spectral domain).
Thanks in advance and best
2007 Jan 05
1
gstat package. "singular" attibute
Hello,
I'm using the gstat package within R for an automated procedure that
uses ordinary kriging.
I can see that there is a logical ("singular") atrtibute of some
adjusted model semivariograms:
.- attr(*, "singular")= logi TRUE
I cannot find documentation about the exact meaning and the implications
of this attribute, and I dont know anything about the inner calculations
2012 Jun 26
2
Drawing (lon,lat) coordinates onto the image of a world
Given a set of latitude and longitude coordinates pairs (stored in variables "latitudevals" and "longitudevals"), I would like to plot them onto the image of a equirectangular world map. I would like to plot each coordinate pair with a red circle, if possible. Does anyone have any suggestions as to how I go about doing this, whether using R or using another program like Google
2007 Oct 05
1
using spplot (sp package) with 5 quantiles
Hi,
I'm using R 2.5.1 and gstat 0.9-39 library and I'm working with the
jura data set provided by gstat library.
I tried to plot a graph of metal concentrations (let's say Cd) with
the command spplot, but I realized that the default lags are equally
distributed between Min and Max. I did:
library(gstat)
data(jura)
jura.pred.xy <- jura.pred
names(jura.pred.xy)[1:2] <-
2009 Sep 08
1
gstat---2 basic plot questions
Hi all--
I'm new to R, statistics and programming, so sorry if this is a really basic
question!
I have plotted a directional variogram, and I want to
a. overlay the omni-directional line over each directional panel
b. display the directional variograms in a single panel with a legend that
associated each line to each degree measurement.
The line I'm using is
2006 Feb 01
1
Gauss-Krüger coordinates system
Dear All,
I need to convert some Northing-Easting coordinates from the Gauss-Krüger system into latitude-longitude.
Any suggestions on how to do it?
Regards,
Marco
Marco Giannitrapani
Statistical Consultant
Tel: +44151373 5945
Email:
Internet: http://www.shell.com
[[alternative HTML version deleted]]
2007 Apr 04
5
how to image.plot a XY grid file into a lat-lon map
Hi All,
I have a netcdf gridded file with LCC projection. I can easily use
image.plot to visualize it. However, as the axises are in X,Y, not Lat and
Lon, I could not add state or country maps onto it (or lat lon information).
I do have a grid2d file that describes the lat and lon for each (X,Y) grid,
but the lat and lon are not regularly spaced, so I could not use image.plot.
Does anyone know
2006 Aug 20
3
plot problem
Hello.
I'm pretty much new to R and I'm trying to produce some figures.
It seems to me, that R has some asynchronous way of plotting figures.
When I run this code:
#constructs the semivariogram of SC1929
vgm1 <- variogram(SC1929~1,~U+V,puerto.map$att.data)
# trying to make new plot
dev.set(which=dev.next())
plot(vgm1)
title(main="Semivariogram",font.main=4)
2012 Nov 20
2
[lattice] how to overlay a geographical map on a levelplot?
r-help lattice adepts:
I have a question which is somewhat geospatial, so I posted to r-sig-geo
rather than here:
https://stat.ethz.ch/pipermail/r-sig-geo/2012-November/016757.html
> summary: How to overlay a geographical map on each panel in a lattice
> (or Trellis), e.g., of levelplot's? Note I am not inquiring about
> creating choropleth maps[,]
which Sarkar 2008 covers quite
2018 Jan 24
2
Issue with concatenation of URL losing
Thank you for your help in advance.
I am trying to pull some data back from a web service
library(httr)
sample2 <- GET("https://elevation.mapzen.com/height?json={\"range\":false,\"shape\":[{\"lat\":40.7,\"lon\":-76.5}]}&api_key=mycode")
result2 <- content(sample2)
height <- result2$height[[1]]
I would like to put by own latitude
2003 Mar 07
1
REML option in gstat
Hi, please help!!
I've been trying to fit variogram models using the REML method in the gstat
package. Every time the Windows GUI crashes. For example
library(gstat)
data(meuse)
x <- variogram(zinc ~ 1, ~x + y, meuse)
v <- vgm(140000, "Sph", 800, nug = 10000)
plot(x, model = fit.variogram(x, model = v, fit.method=5))
Other fit methods are non problematic (eg. fit.method=7