Skip to content

Hist function

2 messages · Dominic Roye, R. Michael Weylandt

#
On Tue, Aug 7, 2012 at 8:05 AM, Dominic Roye <dominic.roye at gmail.com> wrote:
I'd suggest the tapply() function. If you could use dput() to make a
small reproducible example of your data, I'll help you set up the
exact syntax, but I think it's something like this:

tapply(datos.mx1, datos.mx1$Mes, function(x) hist(x[,3], plot = FALSE,
breaks = c(min(x[,3], lf.med[1,2], lc.med[1,2], max(x[,3]))))

Best,
Michael