hadley/ggplot2 — pull request #571 by wch (2012-05-31 15:54:06+00:00)
Title: annotation_map: get group id from munched data (Fixes #568)

Because `id` was being calculated from the un-munched data, it sometimes ended up being a different length from `coords$x` and `$y`.

I also removed the `match()` used to calculate `id`. The same information seems to be there already, in `coords$group`, but this should be double-checked.