YinLiLin / CMplot

📊 Circular and Rectangular Manhattan Plot
511 stars 112 forks source link

different colors for different circles #1

Open corbijonathan opened 8 years ago

corbijonathan commented 8 years ago

Hi! I recently started to use CMplot and it is a great package. I have some troubles trying to color the different "layers" or circles with separate colors: for exemple I have 3 different association results, so 3 different circles in a same plot. I understand how we can color differently the chromosomes within a same circle but I'd rather color differently the different layer, e.g. alternate grey30 grey60 for the inner circle (one phenotype), blue30 blue60 for the second phenotype, and green30 green60 for a last phenotype. Would that be possible using CMplot? Thanks so much! Jonathan

corbijonathan commented 8 years ago

Hi again! Also, for multiple plots, would it be possible to have the same scale for each circles? For instand circle 3 had a maximum of 12, all circles are scaled with the max beeing 12 (so we can easily see the differences between signals)? Thanks again

YinLiLin commented 8 years ago

Hi! Jonathan,

Thanks very much for your use of my package! and i am so sorry for your problems. In current version, we can not set the different "layers" in different colors, because my original intention is to compare the different signals between the same chromosome, so i set the same color for the same chrosome as default, and your second question about setting the same scale for each circles, actually, this function only can be done in ploting rectangular Manhattan plot. Thanks again for your questions! Although CMplot can not deal with your problems, I am very willing to change the codes to meet your needs. And your questions are great suggestions for updating my package to next version. If you have any questions or good suggestions about my package, please let me known.

Thanks again! best,

Lilin Yin

corbijonathan commented 8 years ago

Hi,Thanks for your reply! I was wondering also if it was possible to have a transparent background? So I can plot different circles with different sizes and pile them up to have one figure with different color... It would be a quick and dirty solution but it will work... Thanks! Jonathan

YinLiLin commented 8 years ago

Hi, Jonathan, My package "CMplot" has been updated to a new version, in current version, you can easily achieve your plotting objectives. please download the original codes from my Github branch of CMplot named "CMplot.r", you could have a try. If you have any question during your using, please let me know! Thanks, Best Lilin Yin