[R] manipulating colors in lattice

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Wed Apr 17 19:30:13 CEST 2002


?lset
?trellis.settings.

Reminder: Lattice is not Trellis and it is built on grid not S graphics,
so you can't mix in ideas from S graphics.

If you want a black-and-white plot, use lset to set the bw theme.


On Wed, 17 Apr 2002, 1-27206531-0-90000491 wrote:

> Dear R-users,
>
> I use:
>
> $platform
> [1] "i386-pc-mingw32"
> $arch
> [1] "x86"
> $os
> [1] "Win32"
> $system
> [1] "x86, Win32"
> $status
> [1] ""
> $major
> [1] "1"
> $minor
> [1] "4.1"
> $year
> [1] "2002"
> $month
> [1] "01"
> $day
> [1] "30"
> $language
> [1] "R"
>
> I try  to repeat the analysis of Jose Pinheiro and Douglas Bates described
> in their book: Mixed-Effects Models in S and S-PLUS.
>
> library(lattice)
> library(nlme)
> data(Orthodont)
> plot(Orthodont)
> fm1OrthF.lis <- lmList(distance ~ age, data=Orthodont)
> plot(intervals(fm1OrthF.lis))
> fm1OrthF <- lme(distance ~ age, data=Orthodont, random= ~ 1| Subject)
> plot(augPred(fm1OrthF), aspect="xy", grid=TRUE)
>
> My question: How can I manipulate the colours of the different plots, say
> changing symbols and lines from light-blue to black?
> e.g. plot(Orthodont, col="black") changes only symbols to black and I have
> no idea how to change the lines to black.
>
> Thanks in advance,
>
> Dominik
>
> ----------------------------------------------------------------------------
> Dominik Grathwohl; Bussstr. 34; D-79102 Freiburg
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list