Re: [R] a question about the output of plot

2014-04-15 Thread meng
Thanks. -- QQ: 1733768559 At 2014-04-15 17:56:01,"Jim Lemon" wrote: >On 04/15/2014 07:51 PM, meng wrote: >> Yes,it works ! >> What's the reason for it? >> >Hi meng, >As I understand it, the lattice graphics system produces plot >objects, not actual output on a graphic device. This is in

Re: [R] a question about the output of plot

2014-04-15 Thread Richard M. Heiberger
Please see R FAQ 7.22 7.22 Why do lattice/trellis graphics not work? == 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 *ggp

Re: [R] a question about the output of plot

2014-04-15 Thread meng
Yes,it works ! What's the reason for it? Many thanks! -- QQ: 1733768559 At 2014-04-15 14:36:41,"Jim Lemon" wrote: >On 04/15/2014 11:46 AM, meng wrote: >> Hi all: >> I met a question about the output of plot. >> I want to output 3 plots. >> Method1: by function histogram{lattice} >> Me

Re: [R] a question about the output of plot

2014-04-15 Thread Jim Lemon
On 04/15/2014 07:51 PM, meng wrote: Yes,it works ! What's the reason for it? Hi meng, As I understand it, the lattice graphics system produces plot objects, not actual output on a graphic device. This is in aid of having an object that can be modified or stored rather than an image that cannot.

Re: [R] a question about the output of plot

2014-04-14 Thread Jim Lemon
On 04/15/2014 11:46 AM, meng wrote: Hi all: I met a question about the output of plot. I want to output 3 plots. Method1: by function histogram{lattice} Method2: by function hist{graphics} But method1 failed(the output is empty),and only method 2 works. I can't find out the reason,and many than

[R] a question about the output of plot

2014-04-14 Thread meng
Hi all: I met a question about the output of plot. I want to output 3 plots. Method1: by function histogram{lattice} Method2: by function hist{graphics} But method1 failed(the output is empty),and only method 2 works. I can't find out the reason,and many thanks for your help. #Method1---failed