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]]
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 examples on the help page, though I don't think a mosaic plot is there. Duncan Murdoch> > > Many thanks! > My best. > > > > > > > -- > QQ: 1733768559 > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
The stats package has a mosaicplot function. Perhaps that would help? -- H On 6 February 2015 at 03:46, meng <laomeng_3 at 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 > mosaic plot,which function should be used then? > > > Many thanks! > My best. > > > > > > > -- > QQ: 1733768559 > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- OpenPGP: https://hasan.d8u.us/gpg.key Sent from my mobile device Envoy? de mon portable [[alternative HTML version deleted]]
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.duncan at 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 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 examples on the >help page, though I don't think a mosaic plot is there. > >Duncan Murdoch >> >> >> Many thanks! >> My best. >> >> >> >> >> >> >> -- >> QQ: 1733768559 >> >> >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]