Ah, sorry I didn't pick up the the key part of the question earlier. I
don't think what you propose will work, because it's not clear where
the labels should go. But there error message wasn't very helpful!
Maybe if you explain in more detail what you are trying to accomplish,
and provide a reproducible example (see
https://github.com/hadley/devtools/wiki/Reproducibility for help with
this) we can point you in the right direction.
Best,
Ista
On Wed, Jan 30, 2013 at 4:56 PM, davideps <
davi...@umich.edu> wrote:
> Yes, sorry for that unnecessary complication. All datasets have the "abbr"
> column. Perhaps more simply, how could I get this to work:
>
>>
dev.new(); ggplot() + geom_text(aes(x =
>> sf_units,label=abbr),data=sf_dataset,stat = 'bin') + facet_grid(facets =
>> year ~ .)
> stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
> stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
> stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
> stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
> stat_bin: binwidth defaulted to range/30. Use 'binwidth = x' to adjust this.
> Error: geom_text requires the following missing aesthetics: label
>
> Yet:
>
>>sf_dataset$abbr
> [1] "Bell" "Bell" "Bell" "Bell" "Bell" "Buck" "Buck" "Buck" "Buck" "Burt"
> "Burt" "Burt" "Burt" "Coll" "Coll" "Coll" "Coll" "Cude" "Detr" "Detr" "Detr"
> "Fair" "Fair" "Fair" "Fami" "Fami"
> etc
>
> Any ideas? And will the "y" automatically be assigned to "count" when
> stat='bin'?