Gviz vertical text labels
1
0
Entering edit mode
Jake ▴ 90
@jake-7236
Last seen 2.2 years ago
United States

Hi,

I am trying to plot a number of dense region files and have them labeled. However, with horizontal labels the text is not readable, so ideally I would like them to be vertical at an angle, but couldn't figure out how to specify this in the documentation.

Thanks enter image description here

Gviz • 1.2k views
ADD COMMENT
0
Entering edit mode

Hi, you should post the code that you used and also provide a fully reproducible example.

ADD REPLY
0
Entering edit mode
@james-w-macdonald-5106
Last seen 16 hours ago
United States

See rotation.item under ?AnnotationTrack

aTrack <- AnnotationTrack(start = c(10, 40, 120), width = 15, 
                          chromosome = "chrX", 
                          strand = c("+", "*", "-"),
                          id = c("Huey", "Dewey", "Louie"), 
                          genome = "hg19", name = "foo", rotation.item = 45)
plotTracks(aTrack, shape = "box", featureAnnotation = "id")
ADD COMMENT

Login before adding your answer.

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