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

Hi. I have the following code to make a scatter plot :

ods graphics on;
PROC corr DATA = corn nomiss
plots = scatter (nvar = 2 alpha = .4 .5);
VAR yield rainfall;
RUN;

I works find but I need to use character "#" as indicator. How can I do that? 

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

@Sara73737 wrote:

Thanks for the answer. I'll try that but I am new to SAS so it takes longer for me to figure out how to do it!

 

I need to make the points showing as hashtag in the scatter plot. 


Ok, I think my answer holds, changing the characteristics of a plot from a procedure ismore difficult. 

You can set the marker to "#" in the markerattrs of your SGPLOT or SGSCATTER.

 

http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#p1hcivcbgk9glin...

Use the MARKERATTRS to change the symbols:

http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#p1b2ff69nyh0ghn...

 

 

View solution in original post

3 REPLIES 3
Reeza
Super User

If you want control over the plot, you're better off using SGPLOT.

Otherwise to modify the plots you need to muck around with the templates.

 

It's also not clear what you're actually asking. Please elaborate on your question.

Sara73737
Fluorite | Level 6

Thanks for the answer. I'll try that but I am new to SAS so it takes longer for me to figure out how to do it!

 

I need to make the points showing as hashtag in the scatter plot. 

Reeza
Super User

@Sara73737 wrote:

Thanks for the answer. I'll try that but I am new to SAS so it takes longer for me to figure out how to do it!

 

I need to make the points showing as hashtag in the scatter plot. 


Ok, I think my answer holds, changing the characteristics of a plot from a procedure ismore difficult. 

You can set the marker to "#" in the markerattrs of your SGPLOT or SGSCATTER.

 

http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#p1hcivcbgk9glin...

Use the MARKERATTRS to change the symbols:

http://support.sas.com/documentation/cdl/en/grstatproc/69716/HTML/default/viewer.htm#p1b2ff69nyh0ghn...

 

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1215 views
  • 1 like
  • 2 in conversation