lawremi / ggbio

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

eval_tidy error when set angle aes for 'text' geom in layout_circle #116

Open ghbore opened 5 years ago

ghbore commented 5 years ago

Hi, developers,

I just try to rotate chromosome name in circle layout by tuning 'angle' inside or outside aes, and meet error once 'angle' is defined inside aes. I guess the problem may be from following line --- data is GRanges, but not a vector, list, data frame, or environment.

https://github.com/tengfei/ggbio/blob/a36c7b4029bb25a287e3dfe282000d09a627236d/R/layout_circle-method.R#L116

lawremi commented 5 years ago

You could either submit a PR that works for your use case, or provide a reproducible example so that I can fix it. The first is preferable.