Displaying 20 results from an estimated 7000 matches similar to: "AKIMA: z values at a set coordinate"
2023 Jan 26
1
akima interp results to zero with less than 10 values
The akima package has a problematic license (it doesn't allow commercial
use), so it's been recommended that people use the interp package
instead. When I use interp::interp instead of akima::interp, I get
reasonable output from your example.
So that's another reason to drop akima...
Duncan Murdoch
On 26/01/2023 9:35 a.m., PIKAL Petr wrote:
> Dear all
>
> I have this
2023 Jan 26
1
akima interp results to zero with less than 10 values
Dear all
I have this table
> dput(mat)
mat <- structure(c(2, 16, 9, 2, 16, 1, 1, 4, 7, 7, 44.52, 42.8, 43.54,
40.26, 40.09), dim = c(5L, 3L))
And I want to calculate result for contour or image plots as I did few years
ago.
However interp does not compute the z values and gives me zeros in z matrix.
library(akima)
> interp(mat[,1], mat[,2], mat[, 3], nx=5, ny=5)
$x
[1] 2.0 5.5
2011 Mar 18
1
akima::interp "scales of x and y are too dissimilar"
Dear R users,
I want to do a fitted.contour plot of selected columns of a dataframe M with
M$AM and M$Irradiance as x and y axes respectively. The level of the contour
shall be determined by M$PR.
Some words on my data first. Dataframe M looks like:
head(M$Irradiance)
[1] 293 350 412 419 477 509
head(M$AM)
[1] 2.407 2.161 1.964 1.805 1.673 1.563
head(M$PR)
[1] 70.102 72.600 75.097 80.167
2010 Jan 26
1
sp package coordinates and gridded problems with as.list()
Dear All I hope that someone can help.
I am working with sp pakage and akima
library("akima")
library(sp)
imagine lots of different dataframes, of row = 100 columns = 3 of x and y
coordinates with z values I will call these data frames for the sake of this
example akima
akima<-as.list(1:100)
producing 100 dataframes dataframes of the form akima[[i]]
I then wish to interp this
2006 Feb 01
1
akima 0.4-5, interpp() bug = COMMON block problem
Hi,
I'm currently hunting a bug in the akima library, especially in the code
behind the interpp.old function (bi-variate linear interpolation).
It is based on a triangulation algorithm, interpolation at a given point
needs to know the triangle which contains this point, then the
interpolation is a straightforward calculation based on the three
vertexes.
The problem is: Sometimes the triangle
2008 May 29
1
akima interpolation and triangulation question
Dear all;
First of all, this is probably a more conceptual question than a
R-related one, but still want to give it a try. When working with the
interpolation function "interp" from the package akima and the
triangulation function "tri.mesh" from package tripack I've got NA's
for the interpolation and "error" for the triangulation. The data is
arranged in a
2012 Sep 19
2
Help reproducing a contour plot
Hi All,
I am trying to reproduce this using R instead.
[image: Full-size image (38 K)]
I tried using the following code
*SChla <- read.csv("SM_Chla_data.csv")*
*Atlantis <- SChla[16:66,]*
*head(Atlantis)*
*
*
Seamount Station Depth Pico Nano Micro Total_Ch dbar Latitude
Longitud
16 Atlantis 1217 Surface 0.0639 0.1560 0.0398 0.2597 2.082 -32.71450
57.29733
2005 Oct 03
2
interpolation using akima (PR#8174)
Full_Name: Jonathan Lees
Version: 2.0.1
OS: linux-gnu
Submission from: (NULL) (152.2.75.65)
there is a problem with calculating the convex hull in 2-D interpolation using
the codes interp fromt eh akima package:
x =c(0.6505304, -1.1821562, -0.2600792, 0.7913716)
y = c(1.0424226, 0.1754048, -1.4523334, 0.2349112)
z = c(0.000, 3.042, 0.370, 0.122)
EX = seq(from=min(x), to=max(x),
2010 Sep 13
1
Dampening the spline interpolation for contours
Hello all,
I'm very new to R and am having some trouble with the results of the interp function. I'm trying to produce a chart roughly akin to a weather map with natural looking filled contours over a large region of the south pacific. I've got a list of points and values to be mapped to those points and I use the interp function as follows:
tab<-read.table("data.txt")
2013 Feb 05
2
duplicate data
Hello,
I have a long list of x-, y- and z-data and try to generate a heatmap.
Obviously there are several data with identical x- and y-values. I get
the following error message:
Error in interp.old(x, y, z, xo = xo, yo = yo, ncp = 0, extrap = extrap, :
duplicate data points: need to set 'duplicate = ..'
Unfortunately there seems no help screen on "duplicate". I'd prefer
2011 Feb 10
1
problem with R (akima, fUtilities) in Ubuntu 10.04
Dear all!
I'm using R 2.12.1 in Ubuntu 10.04.
Problem is that when using functions like interp (package akima) and
akimaInterp (package fUtilities), I get different results every time for
the same data set. I've checked the interpolated results, and two
examples (in attachment) have different sum of NA values. Also when I
subtract the x,y,z values from two interpolations of the same data
2006 Apr 05
1
(Fwd) Re: Reading xyz data from a file and plotting a cont
BTW. I checked help page of contour and maybe it could mention a note
about akima package or interp function.
Petr
------- Forwarded message follows -------
From: Petr Pikal <petr.pikal at precheza.cz>
To: "Abhinav Verma" <abhinav1205 at gmail.com>, r-help at stat.math.ethz.ch
Subject: Re: [R] Reading xyz data from a file and plotting a
2003 May 29
1
surfaces and digital terrain model
Dear all,
I have computed a digital terrain model from a set of points (x, y, z)
using the function interp() in package akima. I want to predict flooded
surfaces given target values of z. I can display the flooded surfaces
with contour() or image(), but I don't know how to get the polygons
delimiting the surfaces. Did anyone write a function for this purpose ?
Best regards,
Renaud
--
2010 Nov 20
1
Setting a Red->Yellow->Green Color Transition in Image(...) with yellow corresponding with the Mean Value...
In the following example I would like to have the color transition from
Red->yellow->green in the image(...) function, and if possible have the yellow
be set to correspond with the mean value (for the below 75).
?
I was able to figure something like out when using filled.contour(...), e.g.
filled.contour(ak.fan, levels = c(70, 73, 76,?80, 90), color = terrain.colors)
(I still
2003 Aug 16
2
Prediction Intervals (reposting)
(I'm reposting this message because the original has not appeared after
about 2 days. Sorry if it shows up twice.)
Hello.
First, thanks to those who responded to my recent inquiry about using
contour() over arbitrary (x,y) by mentioning the interp() function in
the akima package. That worked nicely. Now for a new question:
I would like to use a pair of prediction intervals to
2010 Nov 21
1
Alternatives to image(...) and filled.contour(...) for 2-D filled Plots
By any chance are there any alternatives to image(...) and filled.contour(...)
I used Rseek to search for that very topic, but didn't turn over any leads...
http://www.rseek.org/?cx=010923144343702598753%3Aboaz1reyxd4&newwindow=1&q=alternative+to+image+and+filled.contour&sa=Search&cof=FORID%3A11&siteurl=www.rseek.org%252F#1238
I'm sure there are some out there, but
2003 Jun 16
2
Isocontour-lines of spatial data on a rectangular grid (not plots!)
Dear R-Listers,
I have spatial data on an equidistant rectangular grid, similar to
topographic data. I know that there are quite a few R-packages or base
functions that provide nice iso-contours plot, but I don't want a plot, just
the smoothed isocontour line of ONE level (e.g. 10 mm).
Data sets are large, so it would be preferable if the availability of
regular grid data could be exploited,
2008 Oct 01
1
Please help me to produce smoothed contour plots
Please help me to produce smoothed contour plots.
I have dependent data generated at regular intervals of two independent
variables and would like to produce smoothed contour plots - I cannot get
interp (alima) to produce cubic interpolations of the data, only linear
ones. I'm interested in smoothing as the data generation process is
stochastic and produces small variations which I'd
2006 Feb 10
1
3-d splinefun
hello,
is it possible to do something like splinefun(x,y), but with a 3rd
dim?
for example, if i have a 2-dim system like:
x<-1:100
y<-rexp(100,1)
func<-splinefun(x,sort(y))
func(n) # returns interpolated value of y (after sorting) given x=n
# i can check this by:
plot(x,sort(y))
lines(spline(x,sort(y)))
Can i do the same thing with an x,y, and z? i have found the akima
2000 Oct 02
2
R function for "interp"
Hi
How can I do the same has interp in s+ with R ? I've looked to
"approxfun" but didn't figured out how to do it.
Thanks
EJ
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body",