Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 174877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:36:03+00:00 2026-05-11T13:36:03+00:00

Support.sas.com provides this syntax for creating a prediction ellipse. The output dataset includes only

  • 0

Support.sas.com provides this syntax for creating a prediction ellipse. The output dataset includes only the correlation results for the dataset. Is there any way to get information for the individual cases, such as labeling them in the graph or having the output include values for the individual cases?

I’ve tried adding the ID option to this code but was unsuccessful.

Scatter Plot with Prediction Ellipses

ods graphics on;  proc corr data=fish1     plots=scatter(alpha=.20 .30);     var Height Width;  run;  ods graphics off; 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:36:03+00:00Added an answer on May 11, 2026 at 1:36 pm

    If the data doesn’t have to be printed on the graph itself, you can get observation level data shown as a mouse-over tip by using the imagemap=on ods option. This only applies to the html destination, though. By default, your Height and Weight and observation number values will be shown in the tip. The ID statment just lets you add more.

    ods graphics on /imagemap=on; ods html; proc corr data=fish1   plots=scatter(alpha=.20 .30);   var Height Width; run; ods html close; ods graphics off; 

    Update: Here’s an easy way to get some data values printed on the plot. If you change datalabel=weight to datalabel=height it will print the height values for each observation instead. This uses the sgplot proc instead of the plots=scatter statement inside proc corr. Because of this the number of observations and the correlation are not printed on the plot but I’m sure you could find a way to add it if you needed.

    ods graphics on /imagemap=on; ods html; proc sgplot data=Fish1;   scatter x=Height y=Width /datalabel=weight;   ellipse x=Height y=Width / alpha=.2;   ellipse x=Height y=Width / alpha=.3;   keylegend  / location=outside position=bottom; run; ods html close; ods graphics off; 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://support.microsoft.com/kb/953102 We spent about 50 hours during Christmas holiday to identify this problem, causing
My requirements: Support .NET Compact Framework 2.0 and Windows Mobile 6.0 devices. Only need
To support multiple platforms in C/C++, one would use the preprocessor to enable conditional
I support a web site which generates content XML that is then translated into
I support a legacy Java application that uses flat files (plain text) for persistence.
The MediaElement doesn't support rounded corners (radiusx, radiusy). Should I use a VideoBrush on
So WPF doesn't support standard sorting or filtering behavior for views of CompositeCollections, so
My university doesn't support the POST cgi method (I know, it's crazy), and I
The Visual Studio refactoring support for C# is quite good nowadays (though not half
How do you support optimistic / pessimistic concurrency using NHibernate?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.