Skip to content
Prev 31785 / 398506 Next

again troubles with lattice

On Thu, 8 May 2003, Deepayan Sarkar wrote:

            
Perhaps a FAQ entry?

Q: Why don't lattice/trellis graphics work?

A: The most likely reason is that you forgot to tell R to display the
graph.  Lattice functions such as xyplot() create a graph object, but do
not display it (the same is true of Trellis graphics in S-PLUS).  The
print() method for the graph object produces the actual display.  When you
use these functions interactively at the command line the result is
automatically print()ed, but in source() or inside your own functions you
will need an explicit print() statement.


	-thomas