Re: [R] how to draw paired mosaic plot?

2015-02-08 Thread Michael Friendly
You are looking for the pairs plot for table and other objects in the vcd package: ?vcd::pairs.table It allows you to use various panel functions for the diagonal and off-diagonal plots On 2/7/2015 9:50 AM, meng wrote: If there are many character variables,and I want to get the mosaic

Re: [R] how to draw paired mosaic plot?

2015-02-08 Thread meng
Many thanks. -- QQ: 1733768559 At 2015-02-08 23:01:09,Michael Friendly frien...@yorku.ca wrote: You are looking for the pairs plot for table and other objects in the vcd package: ?vcd::pairs.table It allows you to use various panel functions for the diagonal and off-diagonal plots

Re: [R] how to draw paired mosaic plot?

2015-02-07 Thread meng
If both x and y are all character, paired scatter plot is a little bit strange I think. -- QQ: 1733768559 At 2015-02-06 23:52:34,Duncan Murdoch murdoch.dun...@gmail.com wrote: On 06/02/2015 6:46 AM, meng wrote: Hi all: If there are two numeric variable:x,y, and I can get paired

Re: [R] how to draw paired mosaic plot?

2015-02-07 Thread Jim Lemon
Hi meng, It's not too hard to get a mosaic plot of two character variables: x-sample(LETTERS[1:3],20,TRUE) y-sample(LETTERS[24:26],20,TRUE) mosaicplot(table(x,y)) If you could tell us how the above is not what you want, perhaps a better suggestion will appear. Jim On Sat, Feb 7, 2015 at 6:29

Re: [R] how to draw paired mosaic plot?

2015-02-07 Thread meng
If there are many character variables,and I want to get the mosaic plot of every pair of each variable,how to do then? If the variables are numeric, I can use pairs to get paired scatter plot. But as to the character variables, how to get the paired mosaic plot? Many thanks. -- QQ:

Re: [R] how to draw paired mosaic plot?

2015-02-07 Thread Jim Lemon
Hi meng, A basic display of mosaic plots for all pairs of variables isn't too difficult, but you will probably want to make this a bit fancier. It only displays the unique plots, unlike the pairs plot. Keep in mind that many variables will mean many plots.

Re: [R] how to draw paired mosaic plot?

2015-02-06 Thread Hasan Diwan
The stats package has a mosaicplot function. Perhaps that would help? -- H On 6 February 2015 at 03:46, meng laomen...@163.com wrote: Hi all: If there are two numeric variable:x,y, and I can get paired scatter plot by function pairs.But if x and y are character, and I want to get paired

Re: [R] how to draw paired mosaic plot?

2015-02-06 Thread Duncan Murdoch
On 06/02/2015 6:46 AM, meng wrote: Hi all: If there are two numeric variable:x,y, and I can get paired scatter plot by function pairs.But if x and y are character, and I want to get paired mosaic plot,which function should be used then? Why not pairs, with a custom panel function? There are

[R] how to draw paired mosaic plot?

2015-02-06 Thread meng
Hi all: If there are two numeric variable:x,y, and I can get paired scatter plot by function pairs.But if x and y are character, and I want to get paired mosaic plot,which function should be used then? Many thanks! My best. -- QQ: 1733768559 [[alternative HTML version deleted]]