Re: [R] side by side histogram after splitting data by year

2011-04-18 Thread Peter Ehlers
On 2011-04-17 16:29, jim holtman wrote: Will one of these do it for you: str(x) 'data.frame': 550 obs. of 5 variables: $ year: Factor w/ 2 levels "one","two": 1 1 1 1 1 1 1 1 1 1 ... $ size: Factor w/ 2 levels "large","small": 2 2 2 2 2 2 2 2 2 2 ... $ distance: num 30.9 121.

Re: [R] side by side histogram after splitting data by year

2011-04-17 Thread jim holtman
Will one of these do it for you: > str(x) 'data.frame': 550 obs. of 5 variables: $ year: Factor w/ 2 levels "one","two": 1 1 1 1 1 1 1 1 1 1 ... $ size: Factor w/ 2 levels "large","small": 2 2 2 2 2 2 2 2 2 2 ... $ distance: num 30.9 121.5 46.1 46.1 46.1 ... $ taken : int 10 2 1

[R] side by side histogram after splitting data by year

2011-04-17 Thread Stratford, Jeffrey
Hi everyone, I'm looking to produce a side-by-side histogram of the number of trips taken by jays with a particular number of acorns after accounting for year (year "one" and year "two"). I know this involves indexing first then creating a histogram but I'm not sure how I'd do this. I want to e