|
|
|
|
1. A basic chart forms is the line graph. The values on the horizontal axis proceed in regular steps, such as years. The values on the vertical axis represent scores matched to the respective horizontal values. Each axis should be given a user-defined label. The data points are joined by a series of straight lines (like connect-the-dots), to allow the viewer to see the trend in the scores. An alternative form of this chart is the histogram (bar graph), in which a thick bar is drawn from the horizontal axis up to the value on the vertical axis. Write a program that accepts data and labels from the user and offers a choice of the line graph or bar graph form of presentation. Examples of the kind of data might be "Sales" and "Year" as in the examples below.
2. In my research I frequently present data in the form of a factorial plot. Two experimental factors (having m and n levels respectively) are crossed to yield mn combinations. The combinations are administered to a group of participants, and the mean response to each treatment combination is collected. In the plot, mean response goes on the vertical axis, while the levels of the first factor comprise the horizontal axis. Each level of the second factor yields a separate curve. The usual convention for the plot is that each of the curves employs a distinct symbol, and the points on the curve are joined by straight line segments. The program should interrogate the user for the names and levels of the factors, then accept the mean responses. The plot should resemble the one below:
|
|
|