[R] Plot multiple columns
bolker at ufl.edu
Tue Jun 1 14:54:55 CEST 2010
Noah Silverman <noah <at> smartmediacorp.com> writes:
> I'm running a long MCMC chain that is generating samples for 22 variables.
> I have each run of the chain as a row in a matrix.
> So: Chain[,1] is the column with all the samples for variable one.
> Chain[,2] is the column with all the samples for variable 2, etc.
The previous 2 paragraphs seemed contradictory until I realized
that in the first paragraph you are using "run" to mean what I would
usually call a "sample" ...
> I'd like to fit all 22 on a single page to print a nice summary. It is
> OK if the graphs are small, I just need to show the overall shape and
How about for example
> x <- matrix(runif(22000),ncol=22)
> m <- as.mcmc(x)
More information about the R-help