Displaying 20 results from an estimated 300 matches similar to: "interpolation using akima (PR#8174)"
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
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
2008 May 04
1
adaptive optimization of mesh size
DeaR list,
I'm running an external program that computes some electromagnetic
response of a scattering body. The numerical scheme is based on a
discretization with a characteristic mesh size "y". The smaller y is,
the better the result (but obviously the computation will take longer).
A convergence study showed the error between the computed values and
the exact solution
2012 Jul 12
1
identifying local maxima
Dear R users,
I have created a Loess surface in R, in which x is relative longitude by
miles, y is relative latitude by miles, and z is population density at the
neighborhood level. The purpose is to identify some population centers in
the region. I'm wondering if there is a way to determine the coordinates
(x,y) of each center, so I can know exactly where they are.
Let me use the
2011 Apr 16
1
Applying interpolation within a convex hull
Hi there,
I have been using the Tps function (within the Fields package) for a while
now to interpolate different sedimentary units. Due to the method of
formation of the units I know that at some edges the thickness of the unit
decreases to zero. I was wondering if there was someway to specify that the
interpolation only occurs within the convex hull of the data, outside of
which the the values
2008 Apr 25
1
package compilation: including external libraries in windows compilation
Dear R package developers:
I need help on getting a package compiled for windows.
I am trying to use definitions and routines from a
set of libraries in that are in LINUX under
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
but these are unavailable in windows.
I found that we can get these by including, in windows these
2008 Jun 17
1
interp() function output not continue
Dear List,
I'm using interp() to prepare 3d data for plotting with the contour() function.
If have x,y and z data. All are arrays. X and Y are sampled in an orderly fashion on a grid (a circular sub-area of a grid - see plot). I'm trying to use interp() to get x and y arrays and a z matrix that can be fed to contour().
This is the command:
2005 Aug 05
4
interpolation function
Hi,
I have a sparse matrix.I want to fill values into the entries whose value
is 0.The new generated values should come from the interpolation of the
values have existed.Does R provide such interpolation functions which
operate on Matrix, for example ,such a matrix below
0 0 0 0 2.3 0 0 0 0
0 0 3.1 0 0 0 0 1.4 0
0 0 0 0 0 0 0 0 0
1.1 0 0 0 0 0 0 0 0
0 0 0 4
2004 Oct 28
1
akima error
I am trying to load the GRASS library and am getting the following
error:
> library(GRASS)
Loading required package: akima
Error: package 'akima' could not be loaded
In addition: Warning message:
There is no package called 'akima' in: library(pkg, character.only =
TRUE, logical = TRUE, lib.loc = lib.loc)
This is on R 2.0.0, library(GRASS) is installed, and update.packages()
2007 Jun 07
0
Using Akima with nearly-gridded data
I am using the Akima interpolation package to generate an interpolated
color contour plot. It is working very well, except for one problem.
The data that I have represents real-time readings from a thermistor
string vs. time, so the data points are often very nearly in a
rectangular array, since the thermistors are read at regular time
intervals and they are equally spaced physically.
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
2009 Nov 20
1
AKIMA: z values at a set coordinate
Dear all.
I am using the akima function to produce 3d contour plots using interp based
on irregular data.
using the eg in the akima manual
library("akima")
data(akima)
plot(y ~ x, data = akima, main = "akima example data")
with(akima, text(x, y, formatC(z,dig=2), adj = -0.1))
## linear interpolation
akima.li <- interp(akima$x, akima$y, akima$z)
image (akima.li, add=TRUE)
2011 Jan 10
0
Error: package 'akima' is not installed for 'arch=i386'
Dear R users,
I am having problems loading the akima package. I use Windows XP, and R
version 2.12.1.
When I try to load the package I get this error message:
Error: package ''akima'' is not installed for ''arch=i386''
Any help appreciated and thanks you for your time.
Carlos Montenegro Silva
Magíster en Estadística
Departamento Evaluación de Recursos
División
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
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
2006 Jan 25
0
Interpolating spline problems and akima
Hi everyone
I was using spline to interpolate single or two consecutive missing data points
in time series. However, when it comes to longer gaps in the data the spline
function generate new data for both my known and unknown data (see below).
Aside from not understanding why this happens, I thought thought I might try
function "aspline" in library (akima). However, I cannot install or
2011 Oct 19
1
AKIMA color contouring
R Users,
I am using the AKIMA contrib package to generate a 2D colored
contour plot.
The code generates a contour value color legend adjacent the plot
based on the range of
Z values in the plot.
Is there some way to make the association between Z values and
color scale absolute
rather than relative i.e., I want dark green to always mean Z = 4.00 even
if I don't
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
2000 May 04
2
acepack, akima and tripack will not load (PR#533)
Full_Name: Michael R. Allen
Version: 1.01
OS: linux redhat
Submission from: (NULL) (149.149.32.46)
Hello,
Thought you might be interested. I tried to load the package tripack
needed by the sgeostat package. After some careful searching, three packages
were
found which had the same error. Here is the output.
Mike
> library(acepack) Error in dyn.load(x, as.logical(local),
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