Re: [R] omit y=zero line in histogram

2007-04-28 Thread Paul Artes

Reply to self:
set border=NA, stupid.


Paul Artes wrote:
 
 Dear all,
 
 hist ( ) plots a horizontal line at y=0 when the respective bin is empty.
 I can deal with this by modifying the hist object before plotting it
 (x$density[x$density == 0] - NA), but I'm sure I've seen a more elegant
 way. Perhaps this was in truehist (MASS). I have looked but can't find it.
 Does anyone know?
 
 Best wishes
 
 Paul
 

-- 
View this message in context: 
http://www.nabble.com/omit-y%3Dzero-line-in-histogram-tf3643983.html#a10236720
Sent from the R help mailing list archive at Nabble.com.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] omit y=zero line in histogram

2007-04-25 Thread Paul Artes

Dear all,

hist ( ) plots a horizontal line at y=0 when the respective bin is empty. I
can deal with this by modifying the hist object before plotting it
(x$density[x$density == 0] - NA), but I'm sure I've seen a more elegant
way. Perhaps this was in truehist (MASS). I have looked but can't find it.
Does anyone know?

Best wishes

Paul
-- 
View this message in context: 
http://www.nabble.com/omit-y%3Dzero-line-in-histogram-tf3643983.html#a10176762
Sent from the R help mailing list archive at Nabble.com.

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.