Re: [R] how to plot two variables in a figure using ggplot2

2015-12-16 Thread David L Carlson
logy Texas A&M University College Station, TX 77840-4352 -----Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of John Kane Sent: Wednesday, December 16, 2015 9:32 AM To: JimmyGao; r-help mailing list Subject: Re: [R] how to plot two variables in a figure

Re: [R] how to plot two variables in a figure using ggplot2

2015-12-16 Thread John Kane
. ggplot(mydata, aes( XX, value, colour = variable)) + some.plot.option. John Kane Kingston ON Canada > -Original Message- > From: jimmygao0...@163.com > Sent: Tue, 15 Dec 2015 21:41:25 +0800 (CST) > To: r-help@r-project.org > Subject: [R] how to plot two variables in a figur

[R] how to plot two variables in a figure using ggplot2

2015-12-16 Thread Gullen, James (MDE)
Greetings! You don't specify what type of "figure" you're looking for...here are two possibilities to get you started: As a note, it would have made things slightly easier if you had used dput() to provide the data to us. It took a little massaging in notepad before getting it into R. #Read d

[R] how to plot two variables in a figure using ggplot2

2015-12-15 Thread JimmyGao
Hi everyone, Now,I want to use the following data to produce a figure.But I don't know how to do it.Is anyone have some experiences? X axis using variable XX and Y axis using variable OA and KA XX OA KA 1 1243 0.8157 0.7790 2 2486 0.8190 0.7829 3 3729 0.8278 0.7934 4 4972 0.8354 0.8026 5