I changed the color palette from the dba.plotPCA very easily:
I defined
mypalette=c()
(whatever colors I want) and then
dba.plotPCA(results,DBA_CONDITION, label=DBA_ID,vColors=mypalette)
but I cannot seem to be able to do the same for the clustered heatmap (the one produced by plot(results) in DiffBind).
plot(results,vColors=mypalette)
or
plot(results,col=mypalette)
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
palette(mypalette)
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.