On Mon, Mar 30, 2009 at 4:20 PM, Adam <
ly...@fnal.gov> wrote:
>
> Hi, I'm making a histogram of start times (POSIXct). For example,
> qplot(startTime, data=df) . This chooses some reasonable bin width (a
> few hours in my case).
>
> But how can I explicitly control the binning? Like,
> hist( df$startTime, breaks="30 mins")
>
> The "breaks" argument to stat_bin doesn't seem to accept the time
> break specification.
>
> I've tried playing with the binwidth argument, but that seems to only
> accept a number. I give it a number and R churns and churns and I have
> to kill it. Not sure what that is doing, but whatever it is it's bad.
>
If you specify a binwidth, I'm pretty sure it will be in seconds.