[R] plot vs print ??

Deepayan Sarkar deepayan.sarkar at gmail.com
Mon Nov 22 06:01:30 CET 2010


2010/11/20 Uwe Ligges <ligges at statistik.tu-dortmund.de>:
>
>
> On 18.11.2010 11:30, skan wrote:
>>
>> Hello everybody.
>>
>> My question arised from the output of lattice's histogram. But might be
>> extended to any other object that could be printed.
>>
>> I think I've understood your answers,  print calls the plot function when
>> the object to be printed is a trellis plot object.
>> I guess I can always use plot instead. ??
>
>
> No, you really need to print() lattice objects.

Actually no; plot() would do as well.

My view is that plot() is the more obvious method for plotting a
trellis object, and print() is an alias that is useful (only) because
of the auto-printing rule.

(Note that this applies only to lattice, not Trellis in S-PLUS)

-Deepayan



More information about the R-help mailing list