Displaying 2 results from an estimated 2 matches for "xdens".
Did you mean:
dens
2007 Sep 27
1
windows device transparency issue
...ple(layout) code.
##Start
windows()
x <- pmin(3, pmax(-3, rbeta(5000,1,5)))
y <- pmin(3, pmax(-3, c(rnorm(2500, .25, 1), rnorm(2500))) )
trtp.f <- factor(rep(c("Placebo", "Not Placebo"), each=2500),
levels=c("Placebo", "Not Placebo"))
xdens <- tapply(x, trtp.f, density, na.rm=TRUE)
ydens <- tapply(y, trtp.f, density, na.rm=TRUE)
topx <- max(unlist(lapply(xdens, function(x) max(x$y))))
topy <- max(unlist(lapply(ydens, function(x) max(x$y))))
xrange <- range(x, na.rm=TRUE)
yrange <- range(y, na.rm=TRUE)...
2006 Feb 11
4
Need frequency distribution for x,y coordinates
Hi,
I have a set of data in x,y coordinates across the range of -5 to 5 in each
dimension. I would like to obtain the frequency distribution of the
different points, and then graph them so you can see which of the points are
the most frequently occurring.
This would seem to be easy in Matlab, which has the hist3 command for doing
frequency distributions/histograms in 3 dimensions. However,