I changed the color palette from the dba.plotPCA very easily:
(whatever colors I want) and then
but I cannot seem to be able to do the same for the clustered heatmap (the one produced by plot(results) in DiffBind).
does not work. It says "error in plot.new() figure margins too large". I save it directly to a pdf file and does not complain, but when I open the picture has the default color palette all over again.
I also tried setting
and then just running plot(results) but did not work, continued using the default one.
What can I do ? Because I want it to match the new colors I use in the PCA plot. Thank you for your time.