lawremi / ggbio

Grid and ggplot2 based visualization for biological data
111 stars 24 forks source link

Second autoplot,GRanges example fails #12

Closed lawremi closed 12 years ago

lawremi commented 12 years ago

Entering:

autoplot(gr, geom = "point", aes(y = score))

Results in: Error: ggplot2 doesn't know how to deal with data of class GRanges

(using latest svn revision).

On the website, there is a plot, but it seems wrong: there is no faceting by seqnames.

tengfei commented 12 years ago

nice catch, thanks, I need to look into shit issue, it is probably caused by wrong handing of geom/stat combination, in autoplot, it need to automatically figure out the right function to use based on the geom/stat you specified, if not the one support GRanges, it will use ggplot2 function, but certain arguments need to be treated properly. On Fri, Apr 13, 2012 at 3:16 PM, lawremi < reply@reply.github.com

wrote:

Entering:

autoplot(gr, geom = "point", aes(y = score))

Results in: Error: ggplot2 doesn't know how to deal with data of class GRanges

(using latest svn revision).

On the website, there is a plot, but it seems wrong: there is no faceting by seqnames.


Reply to this email directly or view it on GitHub: https://github.com/tengfei/ggbio/issues/12

Tengfei Yin MCDB PhD student 1620 Howe Hall, 2274, Iowa State University Ames, IA,50011-2274 Homepage: www.tengfei.name

tengfei commented 12 years ago

fixed in svn