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<http://www.r-project.org/posting-guide.html>
and provide commented, minimal, self-contained, reproducible code.

The nabble interface is not encouraged.  Please write directly to the list
R-help@r-project.org

Rich

On Tue, May 22, 2012 at 11:14 AM, jhartsho <jhartsho@uark.edu> wrote:

> 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 looks very confusing.  Is the easiest way to create several
> lines between points I enter manually or is there a way to create this
> graph
> from entering my pairwise.t.test data?
>
> Thanks in advance
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Graph-to-visualize-paired-t-test-tp4630909.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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<http://www.r-project.org/posting-guide.html>
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]

