Re: [R] Creating a histogram properly

2011-10-24 Thread Joshua Wiley
Hi Joe, What about this? Btw, the real key to a reproducible example is one that we can actually work withoutput of the summary of the data is not the same as the data itself. That makes it tricky to know what exactly you are working with (although sometimes the original form of the data can

Re: [R] Creating a histogram properly

2011-10-24 Thread Dennis Murphy
Hi: Aren't V1 and V2 factors in this data frame? If so, you should be plotting bar charts rather than histograms (they're not the same). Do you want separate graphs for V1 and V2, do you want them stacked, or do you want them dodged (side-by side for each level 001, 002, 003)? In the absence of su

Re: [R] Creating a histogram properly

2011-10-24 Thread Joshua Wiley
What about? hist(Data$V1) hist(Data$V2) Cheers, Josh On Mon, Oct 24, 2011 at 9:38 AM, Joe Carl wrote: > > Hello all, > > I'm trying to make a histogram of the data contained in my dataframe. > The summary of the data gives me exactly what I want > > summary (Data) > V1     V2 > first001: 3   l

[R] Creating a histogram properly

2011-10-24 Thread Joe Carl
Hello all, I'm trying to make a histogram of the data contained in my dataframe. The summary of the data gives me exactly what I want summary (Data) V1 V2 first001: 3 last001: 9 first002: 3 last002: 7 first003: 2 last003: 6 (Other) :52(Other): 27 But how do I capture the names and