ChIPseeker icon indicating copy to clipboard operation
ChIPseeker copied to clipboard

How to change the colour of plotAvgProf output?

Open TonyGGG opened this issue 7 years ago • 3 comments

Hi YGC, Thank you for your ChIPseeker package. When I analyze with it, I want to change the plotAvgProf color from the "black" to "red". So what should I do?

TonyGGG avatar Aug 14 '18 03:08 TonyGGG

plotAvgProf(tagMatrixList, xlim=c(-1000, 1000), title = "Average profiles of your favorite ChIP peaks around the TSS") + scale_color_manual(values=c("blue", "red")) # If you have two conditions/lines

For one line and from black to red:

  • scale_color_manual(values="red")) could work.

etiennedanis avatar Mar 09 '19 06:03 etiennedanis

Dear,I use the command above, but the error is appear: plotAvgProf(tagMatrix, xlim=c(-3000,3000), xlab="Genomic Region (5'->3')", ylab = "Peak Count Frequency")+scale_color_manual(values="blue") Error: Insufficient values in manual scale. 2 needed but only 1 provided.

liufuyan2016 avatar Apr 12 '19 05:04 liufuyan2016