[R] Background color(s) for groupedData plot
Renaud Lancelot
lancelot at sentoo.sn
Thu Jun 19 19:34:52 CEST 2003
Paul, David A wrote:
> I've been using par() to check the graphics parameters
> associated with both plot(<fitted linear model>) and
> plot(<grouped data object>). AFAIK the only differences
> are in the $cxy, $usr, $xaxp, and $yaxp parameters but
> the background color for the grouped data plot is grey
> while the linear model plot has a white background.
>
> When I've tried par(bg = "white") prior to using the
> plot(<grouped data object>) command it doesn't seem to make any
> difference.
>
> How can I change the grey background to something else?
>
>
> Much thanks in advance,
> David Paul
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
>
Hi Paul,
This method calls lattice plots. An easy way to change the bg color is
to call trellis.device explictely, e.g.
trellis.device(bg = 0)
plot(<grouped data object>)
Best,
Renaud
--
Dr Renaud Lancelot, vétérinaire
CIRAD, Département Elevage et Médecine Vétérinaire (CIRAD-Emvt)
Programme Productions Animales
http://www.cirad.fr/fr/pg_recherche/page.php?id=14
ISRA-LNERV tel +221 832 49 02
BP 2057 Dakar-Hann fax +221 821 18 79 (CIRAD)
Senegal e-mail renaud.lancelot at cirad.fr
More information about the R-help
mailing list