BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Milouda
Obsidian | Level 7

Hi ,

I need to plot height and weight from sashelp.class following the template.  Where do I start?

Sans.png

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

The basic plot can be accomplished with something similar to this:

proc sgplot data=yourdatasetname;

   scatter x=yourxvariable y=youryvariable;

run;

 

Depending on which other items displayed are absolutely necessary then you get to dig into the options available such as an added INSET statement to place additional text, title statement(s) for titles about the graph.

View solution in original post

3 REPLIES 3
ballardw
Super User

The basic plot can be accomplished with something similar to this:

proc sgplot data=yourdatasetname;

   scatter x=yourxvariable y=youryvariable;

run;

 

Depending on which other items displayed are absolutely necessary then you get to dig into the options available such as an added INSET statement to place additional text, title statement(s) for titles about the graph.

Milouda
Obsidian | Level 7
what about those correlations (pearson and spearman), a hint on how to write them on the graph?
Rick_SAS
SAS Super FREQ

here's a readable introduction to the SG procedures (including PROC SGPLOT) to get you started.

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 759 views
  • 0 likes
  • 3 in conversation