On Sep 26, 2012, at 6:13 PM, Rui Barradas wrote:
> Hello, again.
>
> I forgot, but the subject line also says "same axes", not just same axes
> scale.
> If you want all densities on the same graph, use ?matplot (matrix plot).
If you use matplot , presumably just plotting the y-values, you wil
Hello, again.
I forgot, but the subject line also says "same axes", not just same axes
scale.
If you want all densities on the same graph, use ?matplot (matrix plot).
Rui Barradas
Em 27-09-2012 02:08, Rui Barradas escreveu:
Hello,
Something like this?
sag <- matrix(rnorm(1e3 * 9), ncol = 9)
Hello,
Something like this?
sag <- matrix(rnorm(1e3 * 9), ncol = 9)
d.list <- apply(sag, 2, density)
xrange <- range(sapply(d.list, function(d) range(d$x)))
ymax <- max(sapply(d.list, function(d) max(d$y)))
op <- par(mfrow=c(3,3))
for(i in 1:9)
plot(d.list[[i]], xlim = xrange, ylim = c(0,
Good Evening-
I have a set of nine scenarios I want to plot to see how the distribution
is changing, if one tail is getting larger in certain scenario, currently I
am using this code
colnames<-dimnames(sag_pdfs)[[2]]
par(mfrow=c(3,3))
for(i in 1:9) {
d<-density(sag[,i])
plot(d,type="n", mai
4 matches
Mail list logo