Open elpavlos opened 2 years ago
You can set the global option circle.margin
in the beginning of your code:
circos.par$circle.margin = c(0.5, 0.5, 0.5, 0.5)
...
Note the radius of the circle is 1, so you will know what does 0.5 correspond to.
Thanks for the tip, it works!
Other than this, there is no way to wrap the text only for the very long labels?
Maybe you can manually wrap it like "Diabetes\nmellitus"?
@elpavlos you can use str_wrap
from the stringr
package:
# term name labels
circos.labels(
sectors = a$dx,
x = a$x - 0.5,
labels = str_wrap(a$term_name, width = 20),
side = "outside"
)
Hi,
The code used to end up with the attached plot
is the following:
I was wondering if there is a way to wrap long text used for sector names.