[R] yaxs Causes Boundary Line Colour to Change

Martin Maechler maechler at stat.math.ethz.ch
Mon Aug 25 18:09:39 CEST 2014


>>>>> William Dunlap <wdunlap at tibco.com>
>>>>>     on Mon, 25 Aug 2014 08:01:39 -0700 writes:

    > Add zero.line=FALSE to the call to plot() to get rid of
    > the gray line.  

Thank you, Bill.

    > help(plot.density) should say something about it.

    >  Bill Dunlap TIBCO Software wdunlap tibco.com

But it does already... I assume you mean it should say *more*
than now.  I'm open for adding a bit more and thankful for
wording suggestions (off line probably).

Martin Maechler, 
ETH Zurich



    > On Mon, Aug 25, 2014 at 5:00 AM, Dario Strbenac
    > <dstr7320 at uni.sydney.edu.au> wrote:
    >> Why is the bottom boundary plotted in a different colour
    >> to the other three sides ?
    >> 
    >> set.seed(4444) data <- rpois(10, 2) plot(density(data),
    >> ann = FALSE, yaxs = 'i') # Grey bottom boundary.
    >> plot(density(data), ann = FALSE) # All boundaries are
    >> black.
    >> 
    >> Ideally, there would be black lines on all four
    >> sides. The documentation doesn't say the colour will
    >> change.
    >> 
    >>> sessionInfo()
    >> R version 3.1.1 (2014-07-10) Platform:
    >> x86_64-unknown-linux-gnu (64-bit)
    >> 
    >> --------------------------------------
    >> Dario Strbenac PhD Student University of Sydney
    >> Camperdown NSW 2050 Australia
    >> 
    >> ______________________________________________
    >> R-help at r-project.org 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-help at r-project.org 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.



More information about the R-help mailing list