Skip to content
Prev 278715 / 398502 Next

Hmisc break points error

On Nov 28, 2011, at 7:06 PM, Emma wrote:

            
What do you get with str()"

 > fool <- list(x=rnorm(40), y=rnorm(40))
 > fbrks <- histbackback(fool, brks=c(-6, -2, -1,0,1,2, 6) )
 > str(fbrks)
List of 3
  $ left  : int [1:6] 1 7 14 13 5 0
  $ right : int [1:6] 1 6 16 12 3 2
  $ breaks: num [1:7] -4.5 -3.5 -2.5 -1.5 -0.5 0.5 4.5

so fool$breaks should be the breaks.
It is a base graphics implementation so you can use the title function  
to put in ylab, and although the axis should have been put in you can  
also use the axis() function.