YuLab-SMU / ChIPseeker

:dart: ChIP peak Annotation, Comparison and Visualization
https://onlinelibrary.wiley.com/share/author/GYJGUBYCTRMYJFN2JFZZ?target=10.1002/cpz1.585
223 stars 74 forks source link

How to change the colour of plotAvgProf output? #85

Open TonyGGG opened 6 years ago

TonyGGG commented 6 years ago

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?

etiennedanis commented 5 years ago

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:

liufuyan2016 commented 5 years ago

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.