Question: Changing box plot font sizes for axes and labels in DiffBind
gravatar for Mthabisi Moyo
18 months ago by
Mthabisi Moyo10 wrote:

I have been trying to change font sizes for my box plots in DiffBind:

dba.plotBox(x, th = 0.05, pars = list(cex.axis=1.5, cex.main=2, cex.lab=1.5))

I have also tried the following variation:

dba.plotBox(x, th = 0.05, cex.axis=1.5, cex.main=2, cex.lab=1.5)

I assumed that these arguments would be passed to boxplot() but that does not seem to be working; boxplots with the default font sizes are being plotted regardless of the cex.axis argument. To try and diagnose the problem, I have gone from cex.axis=0.1 all the way to cex.axis=100 and it still returns the same plot. Is there a formal way to specify arguments for altering font sizes and maybe label and plot titles in dba.plotBox()? I would prefer to be able to do this in Diffbind without having to re-draw the plot directly with boxplot().



diffbind • 470 views
ADD COMMENTlink written 18 months ago by Mthabisi Moyo10

I looked at the internal code and this does appear to be a bug.  The documentation advertises that the "..." can be additional arguments to the boxplot function but the code does not reflect this.  I have reached out to the maintainer to report this.  

ADD REPLYlink written 18 months ago by shepherl ♦♦ 1.7k

Bug has been logged and will be fixed. -R

ADD REPLYlink written 18 months ago by Rory Stark3.0k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 409 users visited in the last hour