lineplot3

How to download and try this example

Usage: pl -gif lineplot3.htm

Demonstrates self-locating stubs and lineplot with stairstep option. // Specify some data using proc getdata #proc getdata data: 0 0 0 0.5 1.6 0.5 1 1.9 0.9 2.0 2.0 1.4 3 3.2 2.3 5 4.2 2.5 8 3.9 2.1 // set up the plotting area using proc areadef #proc areadef rectangle: 1 1 5 2 xrange: 0 14 yrange: 0 6 frame: yes // set up an X axis using proc xaxis // Note that tics are at irregular locations // and the 0.5 month label is suppressed due to crowding #proc xaxis label: Months of follow-up grid: color=green selflocatingstubs: datafields 1 1 stubomit: 0.5 // set up a Y axis using proc yaxis #proc yaxis label: Number of events // Do 1st curve using proc lineplot #proc lineplot stairstep: yes numbers: yes label: Treatment Group (@@YFINAL) xfield: 1 yfield: 2 linedetails: color=red width=2 lastseglen: 0.2 // Do 2nd curve using proc lineplot #proc lineplot stairstep: yes numbers: yes label: Control Group (@@YFINAL) xfield: 1 yfield: 3 linedetails: color=powderblue width=2 style=1 dashscale=3 lastseglen: 1(s)