You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across a small bug when trying to plot "large" sequences with the package, where the labels on the bottom scale were wrong (eg., 2M instead of 1.5M or 2.5M). Here is a small example:
Ah, interesting catch. Agreed, not ideal. Internally, I use gggenomes::label_bp which is derived from scales::label_bytes. It uses a fixed accuracy, which by default is set to 1. That means that there will be no digits for any value.
A kind of a workaround is to set accuracy=0.1, but then all labels have digits...
Hi,
Thanks for developing gggenomes!
I came across a small bug when trying to plot "large" sequences with the package, where the labels on the bottom scale were wrong (eg., 2M instead of 1.5M or 2.5M). Here is a small example:
s0 <- tibble::tibble( seq_id = c("a", "b", "c"), length = c(1000000, 1500000, 2500000) )
gggenomes(seqs = s0) + geom_seq()
The labels are correct with sequences lengths of 100k/150k/250k or 10M/15M/25M, so I don't really know where the issue could come from.
Best regards,
Yann
The text was updated successfully, but these errors were encountered: