Yeah.  That is the problem. 
 
I would ant there to be a x-label, but I don't want the x-axis tick marks for the facet to be labeled. 
 
For the example below: 
VADeaths_flat_df = stack(as.data.frame(VADeaths))
names(VADeaths_flat_df) = c('Data','Person')
   
counts <- ddply(VADeaths_flat_df, .(cut(Data, breaks=fullseq(range(Data), 20)), Person), nrow) names(counts) <- c("bin", "person", "n")
qplot(person, n, data = counts, fill = person, geom="bar", stat="identity", width = 0.9) +  facet_grid(. ~ bin) +  opts(axis.text.x = theme_text(angle = 45, hjust = 1, colour = "grey60"))
 
I would like the "People" label to remain, but I would like to remove the individual "Male Rural", "Female Rural"...
 
That is I would like the x-label, like the y-label "n", to remain.  However, the x-axis text is a little cluttered so I would like to remove all that text. 
 
Thanks agian.

--- On Wed, 2/4/09, hadley wickham <h.wickham@gmail.com> wrote:

From: hadley wickham <h.wickham@gmail.com>
Subject: Re: overlapping bars on "dodge" ggplot histogram - can it be fixed?
To: jasonkrupert@yahoo.com
Cc: R-help@r-project.org
Date: Wednesday, February 4, 2009, 10:07 AM

On Wed, Feb 4, 2009 at 9:26 AM, Jason Rupert <jasonkrupert@yahoo.com>
wrote:
> Hadley,
>
> Thank you again for your suggestion.
>
> I am going with the second solution.  It appears to have a consistent bar
> width and helps to illustrate when data is not present within a certain
> bin.
>
> One other silly question - how in the world do I get the x-axis label to
> "not" show up?  I want the x-label, but not the x-axis to
appear, e.g. for
> the example below the not to see the "Rural Feamale",
"Rural Male", ... that
> are on the lower x-axis?

The easiest way is + xlab("") or + xlab(NULL)

Hadley

-- 
http://had.co.nz/



      
	[[alternative HTML version deleted]]

