[R] how to change bar colours in plot.stl

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Jul 18 16:54:19 CEST 2005


On Mon, 18 Jul 2005, Michael Townsley wrote:

> Dear helpeRs,
>
> Is it possible to change the shading colour of the range bars in the plot
> generated by plot.stl?  By default they are grey, but I would prefer them
> white (I am preparing some graphics for a powerpoint presentation so I'm
> inverting all colours).
>
> As far as I can see plot.stl allows you to turn off the range bars, but
> nothing about the shading colour.  I tried to look at the function by typing:
>
> > plot.stl
> Error: Object "plot.stl" not found
>
> but received an error message.

So use

 	getS3method("plot", "stl")

to see it.  "light gray" is hardcoded, so you will need to make a copy, 
edit it, and use the edited copy.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list