turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- SAS/GRAPH and ODS Graphics
- /
- Custom Scatter Plot

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

03-10-2016 10:50 AM - edited 03-10-2016 10:51 AM

I have run a proc glm model (Outcome = continuous with two continous predictors). With the Ods Graphics and Plots active it provided the below contour plot. I love components of this plot for explaining the project.

However, my final model has 3 continuous predictors, so SAS does not generate the plot. I would like to reproduce the plot without the color contouring and I would like the dots to be color coded based on the quartiles of the third predictor. Which this seems achievable, but i have no idea how to put on the diagonal lines that represent the dependent variable into a graph.

So dataset would contain

Y: continous variable

X1: continuous variable

X2: continuous variable

X3: continuous variable, categorized into quartile and used to shade observations on the plot.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

03-10-2016 10:54 AM - edited 03-10-2016 10:54 AM

Original Plot

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

03-10-2016 11:37 AM

What version of SAS are you running?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

Posted in reply to Rick_SAS

03-10-2016 11:43 AM

9.4

Probably original release.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

03-10-2016 11:47 AM - edited 03-10-2016 12:13 PM

```
ods graphics on ;
proc glm data=dka_please PLOTS=all;
model HOURS_PH_NORM =
total_fluid
INTITIAL_PH;
run;
ods graphics off;
```

Code is above for 2 IV model. In the final graph I would like to use labels to get rid of "_" and add units to variable names.

Side note, your Sim book was great Rick.