Re: [R] How to visualize paired t-test results?

2009-09-13 Thread johannes rara
Thanks Tal. I modified my code based on your suggestion (below). It would be nice to see other solutions also. data ## sam1 - c(51.7, 54.2, 53.3, 57, 56.4, 61.5, 57.2, 56.2, 58.4, 55.8) sam2 - c(62.5, 65.2, 67.6, 69.9, 69.4, 70.1, 67.8, 67, 68.5, 62.4) DF - stack(data.frame(sam1 = sam1,

[R] How to visualize paired t-test results?

2009-09-12 Thread johannes rara
I would like to know if you have any suggestions how to visualize the results from a paired t-test (see the example data below). I tried to produce plots that show the mean and CI's from the original data and the estimate of the difference between means and the confidence intervals (see below)

Re: [R] How to visualize paired t-test results?

2009-09-12 Thread Tal Galili
Hello johannes, You're example looks nice and I am hoping to see more ideas from other members. Just one tiny idea: In - stripchart Also use ylim to include the ZERO line (and then actually add the line) like this: plot.ylim - c(min(d, 0), max(d, 0)) abline(h = 0, lty = 2, col = blue, lwd =2)