Re: [R] Graph to visualize paired t test

2012-05-22 Thread Richard M. Heiberger
tmp <- data.frame(A=sample(20,10), B=sample(20, 10)) with(tmp, t.test(A, B)) matplot(t(tmp), type="b") This does what you asked for. I don't understand the legend on your plot. For future queries, PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

Re: [R] Graph to visualize paired t test

2012-05-22 Thread R. Michael Weylandt
If I understand what you are looking for, this should get you started: https://www.stat.math.ethz.ch/pipermail/r-help/2012-May/312287.html Michael On Tue, May 22, 2012 at 11:14 AM, jhartsho wrote: > http://r.789695.n4.nabble.com/file/n4630909/pfaff_fig1.gif > > I have run the statistics and fou

[R] Graph to visualize paired t test

2012-05-22 Thread jhartsho
http://r.789695.n4.nabble.com/file/n4630909/pfaff_fig1.gif I have run the statistics and found no significance in my pairwise t test. I want to create a graph similar to the one I included showing similar slopes/lines for my data points. For my data a correlation graph is not appropriate and lo