On Nov 13, 2010, at 10:07 AM, Shige Song wrote:
> Dear All,
>
> I am trying to plot a lattice figure and include it in a LaTeX
> document via the TikZDevice package. I think the journal I am
> submitting to does not like colour figure, so I need to get rid of all
> the colours in the figure. If I directly generate PDF or EPS, the
> option "trellis.device(color=FALSE)", but when I do:
>
> trellis.device(color=FALSE)
> tikz("~/project/figure.tex")
> plot(...)
I wouldn't expect to see output the plot function affected by
modifications to the trellis device. Have your tried using par()?
(There are plot methods that use lattice plotting functions and I
suppose tikz might be one but I do not see that function in my loaded
packages which include lattice by default.)
> dev.off()
>
> The resulted graph has black and white dots and lines but still has
> the default colour in the window frame. Any ideas about how to get rid
> that colour as well?
>
> Many thanks.
>
> Best,
> Shige
David Winsemius, MD
West Hartford, CT