# st: RE: Help making graph: connecting pre- and post- for 22 individuals

 From "Bryan W. Griffin" To statalist@hsphsun2.harvard.edu Subject st: RE: Help making graph: connecting pre- and post- for 22 individuals Date Sat, 05 Jun 2004 18:57:16 -0400

Hi Erik --

I'm interested in something like this too for plotting cell means after ANOVA. Here is one way to accomplish the task:

Reorganize data such as this (to keep this simple I used data from only the first 3 of your 22 students):

student score time
1 4.5 1
1 5.25 2
2 3.5 1
2 5.25 2
3 7.5 1
3 7.5 2

Student 1 has scores of 4.5 and 5.25 on occasion 1 and 2, student 2 has 3.5 and 5.25 on time 1 and 2, etc.

. twoway (connected score time if student==1) (connected score time if student==2) (connected score time if student==3)

This command will give you the graph desired. The only problem I have is with the x-axis. I want only time 1 and 2 showing on the axis, but the graph provides points between 1 and 2, such as 1.2, 1.4, 1.6, and 1.8 and I could not figure how to suppress those numbers. For those knowledgeable with graphing, how does one suppress these numbers between 1 and 2?

```------------------------------

Date: Fri, 4 Jun 2004 09:11:36 -0400
From: "Erik Beecroft" <Erik_Beecroft@abtassoc.com>
Subject: st: Help making graph: connecting pre- and post- for 22 individuals

Hi,

I am using Stata 8 intercooled for Windows.
```
```***stuff cut***

```
```I would like one graph, with 22 lines, one per student.  The x axis would
be term, with two values, Fall and Spring.  The y axis would be reading
level. So the graph would show a line connecting Fall and Spring reading
levels for each student.
```
```___________________________________________________________________
Bryan W. Griffin
P.O. Box 8144
Georgia Southern University
Statesboro, GA 30460-8144

Phone: 912-681-0488
E-Mail: bwgriffin@GeorgiaSouthern.edu
WWW: http://coe.georgiasouthern.edu/foundations/bwgriffin/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
```