How to add labels to dots in the datatrack in Gviz?
0
0
Entering edit mode
ccshao ▴ 70
@shao-chunxuan-6243
Last seen 5 weeks ago
Germany
Hi, How could I add labels to the data track? simple example codes: xx.1 <- data.frame(names = LETTERS[1:10], start = seq(1, length = 10, by = 3), end = seq(2, length = 10, by = 3), value = sample(1:100, 10)) itrack <- IdeogramTrack(genome = "hg19", chromosome = 1, showBandId = TRUE, cex.bands = 0.3) gtrack <- GenomeAxisTrack() xTrack <- DataTrack(data = t(as.matrix(xx.1[, 4])), start = xx.1[, 2], end = xx.1[, 3], genome = "hg19", name = "test", chromosome = 1, pch = 20, cex = 0.8) plotTracks(list(itrack, gtrack, xTrack), from = 1, to = 40, type = "p", background.title = "brown") How could I add labels (A-J, for example) to the dots? Is there a function in Gviz similar to "text"? Best, Chunxuan. [[alternative HTML version deleted]]
Gviz Gviz • 1.0k views
ADD COMMENT

Login before adding your answer.

Traffic: 738 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