Help using Base SAS procedures

scatter plot with # indicator

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 6
Accepted Solution

scatter plot with # indicator

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!


Accepted Solutions
Solution
‎09-11-2017 05:16 PM
Super User
Posts: 23,695

Re: scatter plot with # indicator

Posted in reply to Sara73737

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


All Replies
Super User
Posts: 23,695

Re: scatter plot with # indicator

Posted in reply to Sara73737

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.

Occasional Contributor
Posts: 6

Re: scatter plot with # indicator

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. 

Solution
‎09-11-2017 05:16 PM
Super User
Posts: 23,695

Re: scatter plot with # indicator

Posted in reply to Sara73737

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...

 

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

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