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

Colors of plotAvgProf #45

Open girdhar3 opened 7 years ago

girdhar3 commented 7 years ago

Is there any way I can give colors and linetype as an input to this function. The automated colors makes it very hard to distinguish different plots

girdhar3 commented 7 years ago

what exactly is this doing in back-end? tagMatrix <- getTagMatrix(peak, windows=promoter) does it do findoverlap(peak,promoter)? also if my peak is a Grange object w/o No. of reads then how does this functions finds tagmatrix?

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

prasoonnema commented 4 years ago

Hi, I have two condition I want separate line type along with colour. I used this,

plotAvgProf(gL1, xlim=c(-100, 100), xlab="Genomic Region (5'->3')", ylab = "Xlinks Count Frequency") + ggtitle ("3ss_brr2") + theme(axis.text.x = element_blank(), plot.title = element_text(hjust = 1)) + scale_linetype_manual(values=c("solid", "dashed")) + scale_color_manual(values=c("#00AFBB","#FC4E07"))

Color is changing but line type is not working any suggestion.