Help using Base SAS procedures

Creating a plot with a "normal range" bar on the side

Reply
Contributor
Posts: 27

Creating a plot with a "normal range" bar on the side

I have plot of the trajectory of a value over time and I would like to place just outside the graph, on the right, a bar indicating the normal range of the value (including numbers). How can accomplish this in proc template?

I've attached a rough picture of what I mean.

SGRender25_sample.png

Thanks,

John

Super User
Posts: 10,497

Re: Creating a plot with a "normal range" bar on the side

Without having data and your existing template it is pretty hard to provide details.

My first thought on this would be to add a high-low bar associated with a minimum or maximum value of you the x variable. Or look up the examples related to the GTL Draw statements and POLYLINE.

Contributor
Posts: 27

Re: Creating a plot with a "normal range" bar on the side

Here is some sample data. In the original graph you saw, there are 3 groups of patients, with each patient measured up to 7 time points. Here is data from one group, which includes 3 patients.

PTTimeValue
10211.1
10221.1
10231.2
10241.3
10251.3
10261.2
10310.7
10320.7
10330.6
10340.9
10350.7
10360.8
10410.9
10420.9
10430.8
10440.9
10450.9
10460.9
Ask a Question
Discussion stats
  • 2 replies
  • 174 views
  • 0 likes
  • 2 in conversation