Skip to content
Prev 320135 / 398506 Next

ggplot2 will not draw a rectangle. Error: ggplot2 doesn't know how to deal with data of class XXX"

Hi John,

This bit of your code:

geom_rect(data=rect

Your reproducible example doesn't create rect, and rect() already
exists, so geom_rect() is trying to treat a function as data.

Sarah
On Fri, Mar 22, 2013 at 4:42 PM, John Kane <jrkrideau at inbox.com> wrote:
--
Sarah Goslee
http://www.functionaldiversity.org