I'm attempting to produce something like a violin plot to display how y changes with x for members of different groups (My specific case is how floral area changes over time for several species of plants). I've looked at panel.violin (in lattice), which makes nice violin plots, but is really set up to work on a single variable - the area trace represents the frequency of each value of x for each group. I'm wondering if anyone is aware of a function to do this? I can imagine how to accomplish this using polygon, but I will admit I'm not sure what the best way would be to smooth the data. That said, I would prefer not to reinvent the wheel! Thanks in advance for any wisdom you can share! Eric -- View this message in context: http://old.nabble.com/violin---like-plots-for-bivariate-data-tp26373071p26373071.html Sent from the R help mailing list archive at Nabble.com.
Try: RSiteSearch("violin plot") On Mon, Nov 16, 2009 at 9:40 AM, Eric Nord <ericnord at psu.edu> wrote:> > I'm attempting to produce something like a violin plot to display how y > changes with x for members of different groups (My specific case is how > floral area changes over time for several species of plants). I've looked at > panel.violin (in lattice), which makes nice violin plots, but is really set > up to work on a single variable - the area trace represents the frequency of > each value of x for each group. > > I'm wondering if anyone is aware of a function to do this? > > I can imagine how to accomplish this using polygon, but I will admit I'm not > sure what the best way would be to smooth the data. That said, I would > prefer not to reinvent the wheel! > > Thanks in advance for any wisdom you can share! > > Eric > -- > View this message in context: http://old.nabble.com/violin---like-plots-for-bivariate-data-tp26373071p26373071.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > 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. >
sounds like bivariate density contours may be what you're looking for. Andy From: Eric Nord> > I'm attempting to produce something like a violin plot to > display how y > changes with x for members of different groups (My specific > case is how > floral area changes over time for several species of plants). > I've looked at > panel.violin (in lattice), which makes nice violin plots, but > is really set > up to work on a single variable - the area trace represents > the frequency of > each value of x for each group. > > I'm wondering if anyone is aware of a function to do this? > > I can imagine how to accomplish this using polygon, but I > will admit I'm not > sure what the best way would be to smooth the data. That said, I would > prefer not to reinvent the wheel! > > Thanks in advance for any wisdom you can share! > > Eric > -- > View this message in context: > http://old.nabble.com/violin---like-plots-for-bivariate-data-t > p26373071p26373071.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > 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. >Notice: This e-mail message, together with any attachme...{{dropped:10}}