[R] ggplot2 geom_rect(): What am I missing here

2010-04-05 Thread Marshall Feldman
Thanks to David Winsemius, Peter Ehlers, and Paul Murrell who pointed out my careless error working with ggplot2's geom_rect(). Not to make excuses, but when you've done something successfully dozens of times and suddenly it doesn't work, you're more likely to look for careless errors on your p

Re: [R] ggplot2 geom_rect(): What am I missing here

2010-04-04 Thread David Winsemius
On Apr 4, 2010, at 4:18 PM, Marshall Feldman wrote: Hi R fans, As a newbie following the five-hour rule (after hitting my head against the wall for five hours, post to this list), I am appealing for some help understanding geom_rect() in ggplot2. What I want to do is very simple. I want to

Re: [R] ggplot2 geom_rect(): What am I missing here

2010-04-04 Thread Peter Ehlers
Marsh, Your rectangles won't be very tall with ymax=ymin! (I hope that wasn't the cause of the 5 hours.) -Peter Ehlers On 2010-04-04 14:18, Marshall Feldman wrote: Hi R fans, As a newbie following the five-hour rule (after hitting my head against the wall for five hours, post to this list),

Re: [R] ggplot2 geom_rect(): What am I missing here

2010-04-04 Thread David Winsemius
On Apr 4, 2010, at 4:18 PM, Marshall Feldman wrote: Hi R fans, As a newbie following the five-hour rule (after hitting my head against the wall for five hours, post to this list), I am appealing for some help understanding geom_rect() in ggplot2. What I want to do is very simple. I want to

[R] ggplot2 geom_rect(): What am I missing here

2010-04-04 Thread Marshall Feldman
Hi R fans, As a newbie following the five-hour rule (after hitting my head against the wall for five hours, post to this list), I am appealing for some help understanding geom_rect() in ggplot2. What I want to do is very simple. I want to generate a plot of rectangles. Each one represents a bu