thackl / gggenomes

A grammar of graphics for comparative genomics
https://thackl.github.io/gggenomes/
Other
606 stars 65 forks source link

changing shape of gene features? #125

Closed Tonny-zhou closed 1 year ago

Tonny-zhou commented 2 years ago

Dear author, Thank you for this amazing visualization tool!I have a question, i.e., weather we could change the shape of the element like gene by ourself, which has already been applied in the genoplotr package.

Yours, Tonny

iimog commented 2 years ago

You can modify the style of elements like genes using the shape parameter: See documentation and examples. However, only different variants of arrows are currently possible.

Tonny-zhou commented 2 years ago

You can modify the style of elements like genes using the shape parameter: See documentation and examples. However, only different variants of arrows are currently possible.

I found that the shape parameter is applied for all elements. Could this parameter be put into the aesthetic mappings function aes? If this is done, i could applied different shapes to different elements like different functional genes.

thackl commented 2 years ago

Hm, I'm not sure. Have the feeling this could be tricky...