Skip to content

Incorrect labels for scale with large sequences #182

@YannDussert

Description

@YannDussert

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()

image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementImprove API/behavior/implementation of an existing feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions