Hello, I just started to learn R and ggplot2. Can someone help? How to plot two data sets having different maximum X-axis values in a single plot?
For example, I have two data sets showed below. Using position as X, and count as Y, how can I plot them out in different color lines within a single plot using ggplot2 geom_line? dataset a: position count 1 3 2 9 3 10 4 15 5 19 6 28 7 15 8 13 9 11 10 5 dataset b: position count 1 4 2 8 3 16 4 17 5 19 6 10 Thanks a lot! Jim [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.