Danica Horrell
2011-Apr-18 02:11 UTC
[R] Using jitter function with differing variable lengths
Hi, I am trying to make a scatter plot with 4 different categories using the jitter function. My code returns a variable length error and will not plot because my four categories have different numbers of samples. When I delete samples from my spreadsheet so that each of the categories has the same number of variables, it plots just fine. Is there any way to get around this and plot all of my samples using jitter? Thanks for the help! [[alternative HTML version deleted]]
Uwe Ligges
2011-Apr-18 16:15 UTC
[R] Using jitter function with differing variable lengths
On 18.04.2011 04:11, Danica Horrell wrote:> Hi, > > I am trying to make a scatter plot with 4 different categories using the > jitter function. My code returns a variable length error and will not plot > because my four categories have different numbers of samples. When I delete > samples from my spreadsheet so that each of the categories has the same > number of variables, it plots just fine. > > Is there any way to get around this and plot all of my samples using jitter?That should work right way with the right code. Yours probably isn't right. PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. In that case, we could probably show what you need to improve. Uwe Ligges> Thanks for the help! > > [[alternative HTML version deleted]] > > ______________________________________________ > 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.
Don McKenzie
2011-Apr-18 17:11 UTC
[R] Using jitter function with differing variable lengths
A reproducible example would really help here. On 17-Apr-11, at 7:11 PM, Danica Horrell wrote:> Hi, > > I am trying to make a scatter plot with 4 different categories > using the > jitter function. My code returns a variable length error and will > not plot > because my four categories have different numbers of samples. When > I delete > samples from my spreadsheet so that each of the categories has the > same > number of variables, it plots just fine. > > Is there any way to get around this and plot all of my samples > using jitter? > > Thanks for the help! > > [[alternative HTML version deleted]] > > ______________________________________________ > 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.Why does the universe go to all the bother of existing? -- Stephen Hawking Don McKenzie, Research Ecologist Pacific WIldland Fire Sciences Lab US Forest Service Affiliate Professor School of Forest Resources, College of the Environment CSES Climate Impacts Group University of Washington desk: 206-732-7824 cell: 206-321-5966 dmck at uw.edu donaldmckenzie at fs.fed.us