YinLiLin / CMplot

📊 Circular and Rectangular Manhattan Plot
502 stars 111 forks source link

How to draw two lines in one graph #42

Open Yung-Chien opened 3 years ago

Yung-Chien commented 3 years ago

Hi @YinLiLin ,

I'd like to compare two data sets via line chart and draw them in one graph. While I tried the parameter multitrack = TRUE, it seems that the package connect all possilbe node through a line. So how could I implement such a feature to my program, or any other functions that is useful for me? Here is a example graph.

2020-12-05_110059

Thanks in advances.

Best, Yung-Chien

YinLiLin commented 3 years ago

Hi Yung-Chien,

Thank you for trying CMplot. I'm not quite clear about your object, CMplot is designed for drawing Manhattan plot, it seems that you want a line chart instead of a point chart, i think ggplot2 maybe a better choice for your situation.

Best, Lilin

Yung-Chien commented 3 years ago

Hi @YinLiLin ,

Thanks for your reply. Yes CMPlot is designed for manhattan plot, while it contain a parameter "type" that would allow the user to change the point plot to a line plot, that's why I would like try to draw different lines in one graph. Package ggplot2 can indeed fit my requirement and I'm working on that, but I'm still curious if CMPlot can also do this. That's why I create this issue. Anyway, thanks for your attention again, and CMPlot is a pretty good package.

Best, Yung-Chien