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

Showing results for

- Home
- /
- Programming
- /
- SAS Procedures
- /
- scatter plot with # indicator

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

🔒 This topic is **solved** and **locked**.
Need further help from the community? Please
sign in and ask a **new** question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Posted 09-11-2017 01:40 PM
(861 views)

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

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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

Use the MARKERATTRS to change the symbols:

3 REPLIES 3

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

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

Use the MARKERATTRS to change the symbols:

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

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.