ggbio axis in karyogram
0
0
Entering edit mode
map2085 ▴ 40
@map2085-9227
Last seen 6.0 years ago
United States

The ggbio documentation for making karyograms (layout_karyogram) gives an examples of a karyogram with a line plot on top.

Here is extract of the code from the documentation page (full, reproducible code available there)

values(dn)$pvalue <- rnorm(length(dn))
p + layout_karyogram(dn, aes(x = start, y = pvalue), ylim = c(10, 30), geom = "line", color = "red")

 

Question: How can I put a yaxis on these line graphs?

Putting a y-axis on the lin graphs is essential - it is very unlikely for a journal to accept a figure with no scale or axis ticks whatsoever...

ggbio • 1.1k views
ADD COMMENT
0
Entering edit mode

You can specify a theme where you can plot the y axis in the karyogram. see ggbio documentation.

plot + theme_alignment(ylabel = TRUE, base_size = 12, base_family = "",
axis = TRUE, border = TRUE, grid = TRUE)
ADD REPLY

Login before adding your answer.

Traffic: 509 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6