Closed twillis209 closed 8 months ago
I've just pushed another commit to gg_scatter_labels
which drops the ggrepel_args
argument and instead filters ...
to fish out the formals for both gg_genetracks
and geom_text_repel
. Perhaps this is what you meant?
Too late! I already merged. I'm working on the updates. Leave for the moment please and I'll check it out. Will come back to you for testing later if you don't mind!!
I finished the modifications and pushed them to main branch. Do you want to test out the new version? You can now just pass ggrepel
arguments such as nudge_x
directly via the ...
system. I tweaked the vignette to get it to work too.
So far so good, I'll let you know if anything comes up. Thanks for the quick turnaround.
I have added labelling functionality to
gg_scatter
andlocus_ggplot
.I used the
geom_text_repel
function fromggrepel
to do this as usingggplot2
's existing functionality too often leads to labels (especially lengthy ones containing rsIDs) overlapping points. I've modified the interface of the two aforementioned functions to add aggrepel_args
list of arguments which is passed togeom_text_repel
. Despite the reasonably good default behaviour ofgeom_text_repel
, I've found it's still necessary to tweak a few of theggrepel
parameters to get the best plot. I hope adding theggrepel
import and an argument to the two functions is not too obnoxious.Lastly, I don't think this functionality deserves its own section in the vignette, but I've added a
label = 'index'
argument to thecowplot
example just to show it in action.