Git Product home page Git Product logo

Comments (5)

thackl avatar thackl commented on June 20, 2024

Try gggenomes(spacing=0.2) or so. Does that help?

https://thackl.github.io/gggenomes/reference/gggenomes.html

from gggenomes.

yzhong005 avatar yzhong005 commented on June 20, 2024

That will also increase the space between different lines (bins). However, I only want to change the space within bin, between different seqs.

from gggenomes.

yzhong005 avatar yzhong005 commented on June 20, 2024

IMG_9841

I want to change the space in GREEN circle, not the space with right arrows.

from gggenomes.

thackl avatar thackl commented on June 20, 2024

Hm, so this is how it looks like with spacing=0.3. Isn't that exactly what you want?

library(gggenomes)
s0 <- tibble(
  bin_id = c("A", "A", "B"),
  seq_id = c("a1","a2","b1"),
  length = c(2e5, 3e5, 5e5)
)

p1 <- gggenomes(seqs=s0) +
  geom_seq() +         # draw contig/chromosome lines
  geom_seq_label() +   # label each sequence 
  geom_bin_label()  # label each bin


p2 <- gggenomes(seqs=s0, spacing=0.3) +
  geom_seq() +         # draw contig/chromosome lines
  geom_seq_label() +   # label each sequence 
  geom_bin_label()  # label each bin

library(patchwork)
p1 + p2

image

from gggenomes.

yzhong005 avatar yzhong005 commented on June 20, 2024

Wow, great! Thank you so much!

from gggenomes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.