-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature request] arrow shape - aesthetics strand or direction #28
Comments
Hi Aureliano, Re. your first suggestion, if I understand correctly this functionality is already provided by the
Created on 2020-08-09 by the reprex package (v0.3.0) Re. your second suggestion, this is a good idea although might be a little tricky to implement as the area available below the gene arrows is not as well defined as the area inside them. I'll have a look at whether there is a practical way to do this. |
+1 it would be really nice to plot both forward and reverse genes on the same y-axis, rather than on separate strands in the provided example. @acpguedes for the labels you can try different things, for example using
|
@rickbeeloo nice, I like this alternative. Thanks for the suggestion |
@rickbeeloo I might be misunderstanding what you're trying to do, but the
Created on 2020-10-11 by the reprex package (v0.3.0) |
Aaah this is exactly what I meant! Awesome. Perhaps useful to add this example to the documentation at it will be more common than plotting in the same direction or on separate "molecules" |
Update Plot labels above genes using geom_text
Plot labels above genes using ggrepel::geom_text (small genes)
Plot labels above genes using ggrepel:geom_text (large labels)
In this case we add a newline (
|
@rickbeeloo Good idea, I've updated the example data and the README with a more useful example |
Hi,
I don't know if I missed an option, but I suggest an
aesthetics
to create an arrow according to the strand feature.geom_gene_arrow(aes(direction = strand))
The effect of this aesthetics must be the direction of the arrow, this way it may support non-overlapping genes in the same
y
axis.I don't know how to represent when it has overlap.
Another suggestion, to better fit the name of the molecule, is an option where the text might be placed below to arrow representation.
The text was updated successfully, but these errors were encountered: