Skip to content

multhist weird behavior/ xlabels wrong

3 messages · Laura Matrajt, Jim Lemon

#
On 02/24/2012 09:30 AM, Laura Matrajt wrote:
Hi Laura,
This may be due to the way breaks are calculated when you just specify a 
suggested number of bins. However, when I tried this with barp:

mhmat<-rbind(table(cut(mh[[1]],breaks=3)),
  table(cut(mh[[2]],breaks=3)))
library(plotrix)
barp(mhmat)

I got what I expected, three groups of two bars. Perhaps this will do 
what you want.

Jim