Description Usage Arguments Value Author(s) See Also Examples
integrate over all others but 3 columns
1 2 |
x |
numeric matrix |
vars |
index (integer or string): column to define integration boxes |
intCol |
index (integer or string): column to average |
n |
numeric vector: number of groups per variable |
dimnames |
dimension names of the result array |
fAgg |
function applied over the subsets of x[,intCol] |
... |
further arguments to fAgg |
numeric array with each item representing application of fAgg to x[,intCol] and dimnames equal to means of the classes
Thomas Wutzler
1 2 3 4 5 6 7 8 9 10 11 12 | .tmp.f <- function(){
res <- marginals3d(sample,vars=c("kY","kO","tLagLeaf"),n=8)
#library(Rcmdr)
ds <- melt(res)
scatter3d(ds$kY, ds$tLagLeaf, ds$kO
, surface=FALSE
,bg="white", axis.scales=TRUE, grid=TRUE, ellipsoid=FALSE
, xlab="kY",ylab="tLagLeaf", zlab="kO"
, point.col=rev(heat.colors(100))[round(rescale(ds$value,to=c(1,100)))]
,sphere.size=1.5
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.