Displaying 20 results from an estimated 3000 matches similar to: "3-D (surface) B-splines"
2008 Jan 07
7
rainbow function
Hello
I'm using rainbow function to generate 10 colors for the plot and it is
difficult to tell the neighboring colors from each other. How can I make
the colors more differently.
Thanks
Zhaoming
[[alternative HTML version deleted]]
2007 Nov 29
2
How to align the text in the legend
Hello,
I tried to align lines of text in the legend of a plot. It always
defaults to the central alignment. How can I adjust it to be left
alignment?
Here is the code fragment written in python using Rpy module:
text = 'Quantiles #Loci\n'
text += '%s %6d\n' % (' 100',totalloci)
text += '%s %6d\n' % (' 95',per95cntloci)
2007 Nov 29
1
configure the margin of the plot
I'm trying to put two plots side-by-side in two panels. Since the
y-axis of the two plots is the same, I want to leave out the y-axis of
the second plot.
And the two plots look quite separate from each other. Is there any way
to have them stay closer to each other? I've tried to adjust mar option
of par but it has a global effect as I see the left margin of the first
plot will be
2011 Jul 26
2
R 2.13.1 for Windows: error when loading (some) packages
I am using the latest version of R 2.13.1 and need to load the following
packages;
library(maps)
library(mapdata)
library(mapproj)
library(lattice)
library(tgp)
library(spatstat)
library(akima)
I get the follwing error when loading the packages, "maps", "mapdata" and
"mapproj"
Error: package 'maps' is not installed for 'arch=i386'
Error: package
2011 Jun 01
2
interpolation and extremum location of a surface
Hello,
I have a x,y,z file.Z is not corresponding to a simple analytical function of x and y (see below).
I am trying to find the minimum location of this surface and the z value corresponding to this location by a spline interpolation or from a polynomial fit.
I tried with the akima package but as the location of the point I am looking for (the minimum) is outside of the convex hull it's
2004 Dec 08
2
Surface graph.
What package/code could I use to create a 3-d surface graph of the predicted
values over two of the explanatory variables' coefficients?
Jim
James Bang
Department of Economics
University of Illinois
Well I AM missing the back of my head.you COULD cut me a little slack!
-Homer Simpson
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
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)
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
2002 May 02
3
Surface Graphic
Hello list!
I have a problem with the function 'persp'. I have a data set with the
variables
X -> The X coordenate of the insect
Y -> The Y coordenate of the insect
deep-> how deep the insect buried into the soil.
I would like to have a plot with a surface simulating the way the insect
buried. Is it possible? If I type
persp(x,y,deep)
R gives me this error message
Error in
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 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
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
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
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",
2009 Jan 23
1
3d scatter plot with both error bars and a flexibly fitted surface
Dear R-helpers:
I, an entry level R user, wonder how make a 3d scatter plot with both error
bars and a flexibly fitted surface.
Can anyone eligthen me?
Many Thanks in advance.
-Sean
[[alternative HTML version deleted]]
2008 Jan 24
1
surface plot
Hi, there is following issue, which I encounter when doing data analysis. Say
we have data in form of the matrix x:
> x
[,1] [,2] [,3]
[1,] 0.1 4 10
[2,] 0.2 5 11
[3,] 0.1 5 12
[4,] 0.1 6 13
[5,] 0.2 4 14
[6,] 0.3 5 16
now I want to do surface plot of x[,3] with respect to axes OX:x[,1] and OY:
x[,2] in ascending orders of course.
Thanks in advance,
2006 Jun 03
2
Help on plotting a 3 dimensional surface
Hi
Im working on my master thesis, I need to get a plot currents distributed
over a surface.
I have the data listed in a dataframe with the x coordinates, y coordinates
and the value.
Im using the persp function but I’ve not found out how to put the data into
the z1 variable
es <-read.table("RDatalog_pass_dev_1_wafers_1_8V.txt",header=T,sep="\t")
x1 <-
2008 Jun 10
4
Hello
Hello,
I am facing a problem in drawing heat map using R.
I have a 70X3 matrix and I want to draw a heat map with 1 coloumn on X axis
another on Y axis and want to show the value of 3rd coloumn using heat
colours.
Could you please help me with this .
Thank you .
Regards,
Sumit
[[alternative HTML version deleted]]