tengfei/ggbio — Issue #8: drop unknown strand from key and maybe add new polygon
Author: cstubben
Created: 2012-02-02 22:22:06+00:00
State: open

I have one minor issue and a suggestion. I almost always know the strand (+/-)

x <- GRanges( "chr",
IRanges( c(3,11,17,25,28), c(9,18,24,31,35)) ,
c("-", "+", "+","-","+" ))

so I would like to drop the unknown strand (*) from the key, but can't figure out how
z<-qplot(x)
z
# this draws two legends
z + scale_fill_hue(breaks=c("+","-"))

Even better, I would like to drop the key and use a 5-sided polygon for the plus strand (one of those rectangular blocks with an arrow common in many genome browsers -> ) and the opposite for minus strand <-. Would this be possible addition.

Thanks for a great package.
Chris