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().
Thanks!
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.
Bug has been logged and will be fixed. -R