CMplot icon indicating copy to clipboard operation
CMplot copied to clipboard

How to draw two lines in one graph

Open Yung-Chien opened this issue 5 years ago • 2 comments

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

Yung-Chien avatar Dec 05 '20 03:12 Yung-Chien

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

YinLiLin avatar Dec 06 '20 06:12 YinLiLin

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

Yung-Chien avatar Dec 06 '20 12:12 Yung-Chien