You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a great package with a lot of flexibilities!
But When I tried to adjust the width of the letters, the x axis moved!
Notice the alignment between the ticks of ggseqlogo plot and the sequence letters in following plots.
If I used default stack_width, which is .95, I've got:
Then if I set it to .5:
The vertical grids became a little bit narrower, even though not so obvious by eyes.
But if I set it to 0.01:
Note the relative positions of the ticks to the sequence letters, it is exactly what I want!
The sequences were plotted by ggplot2's geom_text, and the plots were arranged by gtable:
If I just try to solely plot with ggseqlogo, with stack_width0.95:
For stack_width0.01:
You can easily tell the different padding from the first tick to the left border. Of course, as a single plot, it is completely OK, but I expect the stack_width shouldn't affect the tick positions so that we can better align the seqlogo to other plots.
By the way, the motif length is actually 9 (marked in the plots), the rest regions are filled with zeros.
Thanks!
The text was updated successfully, but these errors were encountered:
pwwang
changed the title
stack_with affects x axis tick position
stack_with affects x axis tick positions
Dec 15, 2017
This is a great package with a lot of flexibilities!
But When I tried to adjust the width of the letters, the x axis moved!
Notice the alignment between the ticks of
ggseqlogo
plot and the sequence letters in following plots.If I used default
stack_width
, which is.95
, I've got:Then if I set it to

.5
:The vertical grids became a little bit narrower, even though not so obvious by eyes.
But if I set it to

0.01
:Note the relative positions of the ticks to the sequence letters, it is exactly what I want!
The sequences were plotted by
ggplot2
'sgeom_text
, and the plots were arranged bygtable
:If I just try to solely plot with

ggseqlogo
, withstack_width
0.95
:For

stack_width
0.01
:You can easily tell the different padding from the first tick to the left border. Of course, as a single plot, it is completely OK, but I expect the
stack_width
shouldn't affect the tick positions so that we can better align the seqlogo to other plots.By the way, the motif length is actually 9 (marked in the plots), the rest regions are filled with zeros.
Thanks!
The text was updated successfully, but these errors were encountered: