Displaying 5 results from an estimated 5 matches for "grid2d".
Did you mean:
rid2d
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 how to plot this type of gridded data so that country or
state borders can be easily added? Thanks a lot!
Linda
[[alternative HTML version dele...
2012 Feb 15
3
(sin asunto)
Hola
Alguien me podrĂa decir como hacer una grafica
del tipo persp() de la densidad de una distribucion
normal bivariante estandarzada con correlacion 0.5??
gracias
[[alternative HTML version deleted]]
2009 Feb 24
0
problem understanding the result of pnorm2d()
Hi all,
I am using the fMultivar package for calculating probabilities of bivariate normal distribution. I use the manual's example to understand what is going on, but let's take it for smaller dimensions of x and y:
## Bivariate Normal Density:
x = c(0.3,10)
y = c(-10,0.2)
X = grid2d(x,y)
z = pnorm2d(X$x, X$y, rho = 0.5)
Z = list(x = x, y = y, z = matrix(z, ncol = length(x)))
persp(Z, theta = -40, phi = 30, col = "steelblue")
What does the grid2d() command do?
In the Z- result in the matrix, I really cannot figure out where the 4 probabilities are referring to. Can...
2011 Feb 22
1
image.plot results in different colors than legends
...ation from assetsCorImagePlot
function in fAssets package):
n <- ncol(sample)
names <- colnames(sample)
image.plot(x=1:n, y=1:n, z=sample[,n:1], col=rainbow(20, start=0, end=.6,
alpha=.8), axes=F, main='', xlab='', ylab='')
X <- t(sample)
require(fields)
coord <- grid2d(1:n, 1:n)
for (i in 1:(n * n)) {
text(coord$x[i], coord$y[n * n + 1 - i], round(X[coord$x[i], coord$y[i]],
digits = 2), col = colors()[285], cex = 0.7)
}
axis(2, at = n:1, labels = names, las = 2, cex.axis=0.8)
axis(3, at = 1:n, labels = names, las = 0, cex.axis=0.8)
box()
invisible()
I get a nice...
2008 Sep 17
0
fMultivar functions not loading under R-2.7
...ical2d"
[4] ".delliptical2dSlider" "density2d" "dmvsnorm"
[7] "dmvst" "dnorm2d" ".dnorm2d"
[10] "dt2d" ".First.lib" ".gfunc2d"
[13] "grid2d" "gridData" "hexBinning"
[16] "hist2d" "integrate2d" "mvFit"
[19] ".mvsnormFit" ".mvsnormPlot" ".mvsnorm.plot.1"
[22] ".mvsnorm.plot.1A"...