- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I have to plot on a single plot for 7 patients
the units are pressure on the x axis and crosssectional area (CSA) on the y axis
for each pt we have a set of upto 10 values of pressure and CSA depending on the volume that has a starting point of 25 cc and increase by 5 cc
Patient 1
vol CSA Pressure
25 163 7.2
30 161 11.8
35 172 19.5
40 158 32.2
45 165 46.8
50 179 68.1
How can I plot using SAS
50
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
SGPLOT is a good place to start.
This is more complicated that your requirements - you don't need the group variable but otherwise it should get you started.
Add XAXIS and YAXIS statements to control your axis values.
Note that you should be able to run the example code in the links and they should work out of the box.
@anig0904 wrote:
I have to plot on a single plot for 7 patients
the units are pressure on the x axis and crosssectional area (CSA) on the y axis
for each pt we have a set of upto 10 values of pressure and CSA depending on the volume that has a starting point of 25 cc and increase by 5 cc
Patient 1
vol CSA Pressure
25 163 7.2
30 161 11.8
35 172 19.5
40 158 32.2
45 165 46.8
50 179 68.1
How can I plot using SAS
50
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
i am unable to figure the right type and also how to put the data for easy readability.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
@anig0904 wrote:
i am unable to figure the right type and also how to put the data for easy readability.
I don't know that means. What 'type' and what 'readability' are you referring to here?
What do you have so far? What have you tried? Where exactly are you stuck?
Steps:
1. Import data
2. SGPLOT - based on example using a SCATTER or SERIES statement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I have to plot on a single plot for 7 patients
the units are pressure on the x axis and crosssectional area (CSA) on the y axis
for each pt we have a set of upto 10 values of pressure and CSA depending on the volume that has a starting point of 25 cc and increase by 5 cc
Patient 1
vol CSA Pressure
25 163 7.2
30 161 11.8
35 172 19.5
40 158 32.2
45 165 46.8
50 179 68.1
How can I plot using SAS
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Please don't post the same question multiple times. In the link I included above, there's an example of plotting multiple series if you look at the Examples Tab.
Or are you trying to make a 3D surface type plot?
Are you using SAS UE or a full version of SAS with SAS/GRAPH?