[R] A question about plot.mcmc

Uwe Ligges ligges at statistik.tu-dortmund.de
Wed Apr 21 20:35:11 CEST 2010

On 21.04.2010 20:31, Xiao D wrote:
> Dear List members,
> I am using R to generate MCMC time series plots.
> This is the code I use; however, everytime an error message will come out
> saying could not find function "plot.mcmc."
> I have coda package and Lattice package installed.
> Does anyone know what may get wrong here? Thanks so much for your
> suggestions.
> Hongli Li

Just say plot(mcmcobject)

The plot generic should call the appropriate methode plot.mcmc that is 
hidden in the code namespace.

Uwe Ligges

> *library (coda)
> dat1=read.csv("Itemtime.csv")
> col=dim(dat1)[2]
> dat1=dat1[,3:col]
> pdf("Itemtime.pdf")
> plot.mcmc(as.mcmc(dat1),ask=FALSE)
> dev.off()
> *<r-help at r-project.org>
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list