How to change the size of yaxis in motifstack
0
0
Entering edit mode
@saadmurtazakhan-6782
Last seen 7 months ago
United States

Hi,

I am trying to use motifstack in bioconductor. I was wondering if there is any way to reduce the size of yaxis or limit the yaxis to a maximum value. I tried to use plotYaxis but I am unable to reduce the size of the yaxis. I was wondering how to do it.

thanks Saad

motifstack plotMotifLogoStack • 1.4k views
ADD COMMENT
0
Entering edit mode

Currently the yaxis is fixed by the max entropy of information. May I know why you want to change default yaxis?

ADD REPLY
0
Entering edit mode

I have a motif and I am trying to look at the surrounding nucleotides distribution. So in the matrix I make all the motif positions to be zero and then look at the surrounding nucleotides but since they are too small I need to change the yaxis size. Please let me know how I go about in doing that.

ADD REPLY
0
Entering edit mode

If that is the case, I would suggest you to set ic.scale into FALSE. Please have a try and let me know if that meet your requirement.

ADD REPLY
0
Entering edit mode

That's probably not what I want.

With ic.scale=TRUE With ic.scale=TRUE

With ic.scale=FALSE With ic.scale=FALSE

ADD REPLY
0
Entering edit mode

something like this (see vignette and help files for more details): plot(motif, ic.scale=FALSE, ylab="probability")

ADD REPLY
0
Entering edit mode

@OU_jianhong is there a better work around than above. How Can I use ylim with plotmotifstack?

ADD REPLY
0
Entering edit mode

In current version, motifStack can not handle ylim. I want to fix the ylim when ic.scale is used. In your specific usage, you can have a try with plotMotifLogoA to plot the logos one by one like this (but I don't suggest you to do that): grid.newpage() vp <- viewport(x = .5, y=1.8, width = .9, height = 3.4) # adjust y and height to trim the plot. pushViewport(vp) plotMotifLogoA(motif) grid.xaxis(at=seq.int(ncol(motif@mat))-.5)/ncol(motif@mat), label = seq.int(ncol(motif@mat))) grid.yaxis(at=seq(0, .25, length=6), label=(0:5)/10) popViewport()

ADD REPLY

Login before adding your answer.

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