开发者

Control size of the output of seqLogo?

开发者 https://www.devze.com 2023-02-16 23:42 出处:网络
I am using the seqLogo package to draw some sequence Logos.I need to make the logos wider, the default drawing makes the logos into s开发者_如何学运维quare graphs.Is there a way to do this?You can vie

I am using the seqLogo package to draw some sequence Logos. I need to make the logos wider, the default drawing makes the logos into s开发者_如何学运维quare graphs. Is there a way to do this?


You can view the code from seqLogo:

> library(seqLogo)
> seqLogo
function (pwm, ic.scale = TRUE, xaxis = TRUE, yaxis = TRUE, xfontsize = 15, yfontsize = 15)
{                                                                                                                                                                                                                                             
    if (class(pwm) == "pwm") {
        pwm <- pwm@pwm
    }
    ...
}
<environment: namespace:seqLogo>
> 

There are parameters in there that control rendering, which you could adjust by editing the function code. See this SO answer to learn about the fix() function.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号