[R] small issue with densityplot

Horace Tso Horace.Tso at pgn.com
Tue Aug 21 19:44:45 CEST 2007

Hi folks,

This is really minor but to someone not familiar with the various tentacles of the lmer package it could be really annoying. I was trying to plot the posterior density of the fixed effect parameters of a lmer model,

> hr.mcmc = mcmcsamp(hr.lmer, n=50000)
> densityplot(hr.mcmc, plot.points=F)

There is this error,

"Error in densityplot(hr.mcmc, plot.points = F) : 
        no applicable method for "densityplot" "

It kind of smells like something I've come across before. So I checked the mcmcsamp help page, and alas, the example suggests that the package coda is needed.  

>From the help page of densityplot alone, there is no way one could figure out this dependency. It says, together with histogram, it is part of lattice.

Could the function author *please* make clarification in future editions of lattice.


Horace W. Tso

More information about the R-help mailing list