ChiPseeker package: plotAnnoPie identical colors for peakAnnoList features
0
0
Entering edit mode
amafon95 • 0
@amafon95-23956
Last seen 3.7 years ago

Hello,

I have six different PiePlots created with the plotAnnoPie function of the ChiPseeker package. But unfortunately, for one single chart, the whole colour distribution is different....does anyone have an idea of how I can unify the plot-colors? I think that the reason is that one feature (in bolt) is not represented in the peakAnnoList of my second peak set, but I can't find an option or parameter for that. Here are my feature distribution for my data sets.

peakAnnoList_Peaks1 Annotated peaks generated by ChIPseeker XX/XX peaks were annotated Genomic Annotation Summary: Feature Frequency 9 Promoter 30.8823529 4 5' UTR 0.4901961 3 3' UTR 2.1241830 1 1st Exon 5.5555556 7 Other Exon 2.9411765 2 1st Intron 7.6797386 8 Other Intron 12.4183007 6 Downstream (<=300) 1.9607843 5 Distal Intergenic 35.9477124

peakAnnoList_Peaks2 Annotated peaks generated by ChIPseeker XX/XX peaks were annotated Genomic Annotation Summary: Feature Frequency 8 Promoter 24.230769 3 3' UTR 1.923077 1 1st Exon 4.615385 6 Other Exon 3.461538 2 1st Intron 11.923077 7 Other Intron 14.615385 5 Downstream (<=300) 1.538462 4 Distal Intergenic 37.692308

My command for creating the pie-chart is: plotAnnoPie(peakAnnoList_Peaks)

How can I create a plot with the same colors for each feature? I would really appreciate your help :-)!

Kind regards, Amanda

ChiPseeker plotAnnoPie • 1.8k views
ADD COMMENT
0
Entering edit mode

Hello,

I solved that! I added the colors manually and removed the color for the missing feature.

plotAnnoPie(peakAnnoList_human1, col = c("lightblue","palegoldenrod","deepskyblue3", "green4", "indianred2", "darkorange1", "plum3", "thistle", "saddlebrown"))

plotAnnoPie(peakAnnoList_human2, col = c("lightblue","deepskyblue3", "green4", "indianred2", "darkorange1", "plum3", "thistle", "saddlebrown"))

Cheers!

ADD REPLY

Login before adding your answer.

Traffic: 637 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6