Displaying 5 results from an estimated 5 matches for "grid1".
Did you mean:
grid
2007 Dec 04
1
2/3d interpolation from a regular grid to another regular grid
Hello R users,
I have numerical data sampled on two grids, each one shifted by 0.5
from the other.
For example:
grid1 = expand.grid(x=0:3, y=0.5:2.5)
grid2 = expand.grid(x=0.5:2.5, y=0:3)
gridFinal = expand.grid(x=0.5:2.5, y=0.5:2.5)
plot(gridFinal, xlim=c(0,3), ylim=c(0,3), col="black", pch=19)
points(grid1, xlim=c(0,3), ylim=c(0,3), col="red", pch=19)
points(grid2, xlim=c(0,3), ylim=c(0,3),...
2010 Jul 30
2
Layering multiple persp plots
Hi all,
I've got two persp plots with Identical X and Y's, and I'd like to plot them
on the same graph, so that it is obvious where one plot is above the other.
I can't find any mention of this anywhere. Do I need to use wireframe?
Any help is appreciated.
Thanks,
--
Ian Bentley
M.Sc. Candidate
Queen's University
Kingston, Ontario
[[alternative HTML version deleted]]
2011 Feb 22
2
Plotting a functional time series
...to plot a sequence of densities on a 3d graph, something like
-----------------------------------------------------------------
x <- sapply(1:10, function(i)rnorm(1000))
f <- sapply(1:10, function(i)density(x[,i], from=-5,to=5)$y)
grid <- density(x[,1], from=-5,to=5)$x
win.graph()
persp(grid1, 1:10, f,theta=-50, phi=30, d=2)
-----------------------------------------------------------------
That is, I simply want to stack the curves
-----------------------------------------------------------------
win.graph()
opar <- par(mfrow=c(5,2), mar=c(2,2,1,1))
sapply(1:10, function(i)plot(gri...
2012 Dec 04
5
question about sum of (column) elements in R
Hi,
I have the following data:
0 12
1 10
1 4
1 6
1 7
1 13
2 21
2 23
2 20
3 18
3 17
3 16
3 27
3 33
4 11
4 8
4 19
4 16
4 9
In this data file I would like to sum the numbers of second column which
belong to the same number in the first column.
So the output would be:
0 12
1 40
2 64
3 111
etc.
Thank you.
Kind regards,
T. Bal
2009 Sep 23
2
[PATCH node] Introduces the virtual network administration functions.
...grid = Grid(1, 2)
+ grid.setField(Label("Forward to physical network:"), 0, 0)
+ grid.setField(self.__physical_devices, 0, 1)
+ return [Label("Connecting To Physical Network"),
+ grid]
+
+ def get_summary_page(self, screen):
+ grid1 = Grid(2, 1)
+ grid1.setField(Label("Network name:"), 0, 0, anchorRight = 1)
+ grid1.setField(Label(self.__config.get_name()), 1, 0, anchorLeft = 1)
+
+ grid2 = Grid(2, 3)
+ grid2.setField(Label("Network:"), 0, 0, anchorRight = 1)
+ grid2.setFi...