Re: [R] bwplot puts the bars in the wrong place

2010-04-19 Thread Peter Ehlers
James, It's actually the bars for hour 3 (which don't exist) that are missing. You still need the 'drop.unused.levels=FALSE' and if you make 'OnHour' into a factor then you won't need the 'horizontal=FALSE'. -Peter Ehlers On 2010-04-19 8:27, James Rome wrote: You were right about the gdf$. So

Re: [R] bwplot puts the bars in the wrong place

2010-04-17 Thread Peter Ehlers
James, Your problem with bwplot is with your scales definition. bwplot places the plots at locations 1:24; you can then supply arbitrary labels for these locations. Try changing the following: xlim = c(-1, 24) to xlim = c(0, 25) at = hrs to at = hrs + 1 (or redefine hrs) As to needing to use

Re: [R] bwplot puts the bars in the wrong place

2010-04-17 Thread Ben Bolker
James Rome gmail.com> writes: > ... does the call automatically assume that the variable > names are from the frame in the data= statement? Yes, it does. How about bwplot(tt~factor(OnHour,levels=0:23)|Runway,data=gdf, drop.unused.levels=FALSE) ? __

Re: [R] bwplot puts the bars in the wrong place

2010-04-17 Thread David Winsemius
On Apr 17, 2010, at 11:01 AM, James Rome wrote: Ah, Well, I thought I put up just the data needed. Sorry, was wrong file. And yes I am still climbing up the very steep learning curve hill. I attach a better data set. If it gets stripped, it is at http://dl.dropbox.com/u/537118/gdf.txt 1. I pu

Re: [R] bwplot puts the bars in the wrong place

2010-04-17 Thread Peter Ehlers
On 2010-04-17 9:01, James Rome wrote: Ah, Well, I thought I put up just the data needed. Sorry, was wrong file. And yes I am still climbing up the very steep learning curve hill. I attach a better data set. If it gets stripped, it is at http://dl.dropbox.com/u/537118/gdf.txt 1. I put the gdf$tt

Re: [R] bwplot puts the bars in the wrong place

2010-04-17 Thread David Winsemius
After unzipping that file, http://dl.dropbox.com/u/537118/gdf.zip , I got a structure object that took what seemed to be an inordinately long time to eval-parse wehn assigned to gdf, but it did eventually produce: > str(gdf) 'data.frame': 2656 obs. of 21 variables: $ OnDate:Clas

Re: [R] bwplot puts the bars in the wrong place

2010-04-17 Thread Peter Ehlers
Well, finally we have something that we can respond to. Do note the following from the Posting Guide: # No binary attachments except for PS, PDF, and some image and archive formats (others are automatically stripped off because they can contain malicious software). Files in other formats and lar

Re: [R] bwplot puts the bars in the wrong place

2010-04-17 Thread James Rome
The data are at http://dl.dropbox.com/u/537118/gdf.zip On 4/17/2010 1:42 AM, Deepayan Sarkar wrote: On Fri, Apr 16, 2010 at 1:54 PM, James Rome wrote: > Dear R-Help, > > With the attached data set, I am still getting incorrect bwplots > None of your attachments came through (presumably becaus

Re: [R] bwplot puts the bars in the wrong place

2010-04-16 Thread Deepayan Sarkar
On Fri, Apr 16, 2010 at 1:54 PM, James Rome wrote: > Dear R-Help, > > With the attached data set, I am still getting incorrect bwplots None of your attachments came through (presumably because of the list filters), and we need the data to figure out what's happening. Either put the result of dput

Re: [R] bwplot puts the bars in the wrong place

2010-04-16 Thread James Rome
On 4/16/2010 8:27 PM, Jun Shen wrote:Jim, Try this, bwplot(tt~as.factor(OnHour),data=gdf,..) Jun Shen from Millipore I already tried using a factor, and the data set I enclosed had gdf$OnHFact which was already a factor. It gave the same wrong plot. What did work was to call xyplot instead

Re: [R] bwplot puts the bars in the wrong place

2010-04-16 Thread Jun Shen
Jim, Try this, bwplot(tt~as.factor(OnHour),data=gdf,..) Jun Shen from Millipore On Fri, Apr 16, 2010 at 3:54 PM, James Rome wrote: > Dear R-Help, > > With the attached data set, I am still getting incorrect bwplots > > > xyplot(gdf$tt~gdf$OnHour |gdf$Runway, data=gdf) # Is correct > >

[R] bwplot puts the bars in the wrong place

2010-04-16 Thread James Rome
Dear R-Help, With the attached data set, I am still getting incorrect bwplots > xyplot(gdf$tt~gdf$OnHour |gdf$Runway, data=gdf) # Is correct > bwplot(gdf$tt~gdf$OnHour |gdf$Runway, data=gdf, horizontal=FALSE) # Puts the boxes on the wrong x-axis values # look especially at 0 and 3. How do