Re: [R] Lattice, combine histogram and line graph

2011-01-09 Thread Jim Burke
Thanks Josh, Gabor, and David, I appreciate your suggestions and the time you took to think about this. This was all most helpful. Gabor I will look at the zoo package soon. Sounds interesting. Below is what worked for me from Josh to overlay a line graph on a histogram. obj1 <- xyplot( r

Re: [R] Lattice, combine histogram and line graph

2011-01-09 Thread Gabor Grothendieck
On Sun, Jan 9, 2011 at 8:13 PM, Jim Burke wrote: > Hello everyone, > > I have a simple histogram of gasoline prices going back a few years that I > want to insert a line graph of consumer price index (cpi) over the > histogram.  I have looked through the "Lattice" book by Deepayan Sarkar but > don

Re: [R] Lattice, combine histogram and line graph

2011-01-09 Thread Joshua Wiley
Hi Jim, Some example data would help us. I typically think of a histogram as the frequency of values falling within a certain range (determined by bins). Since they are univariate plots, I'm not sure how you are planning on adding a line graph to that. If you just want bars of the average gasol

Re: [R] Lattice, combine histogram and line graph

2011-01-09 Thread David Winsemius
On Jan 9, 2011, at 8:13 PM, Jim Burke wrote: Hello everyone, I have a simple histogram of gasoline prices going back a few years that I want to insert a line graph of consumer price index (cpi) over the histogram. I have looked through the "Lattice" book by Deepayan Sarkar but don't see