Data visualization with SAS programming

How to draw in legend as scatter as series

Accepted Solution Solved
Reply
Regular Contributor
Posts: 214
Accepted Solution

How to draw in legend as scatter as series

[ Edited ]

Hi all,

 

Could you please advise in the following case. I'm using the following code but can not receive correct legend where as scatter as series are listed.

 


Accepted Solutions
Solution
‎11-03-2017 01:57 PM
SAS Super FREQ
Posts: 1,278

Re: How to draw in legend as scatter as series

Posted in reply to DmytroYermak

You need to turn on the MARKERS in the series plot.  You can then keep only the error bars in the scatter, or leave that as is.  Include only the series plot in the legend.

View solution in original post


All Replies
SAS Super FREQ
Posts: 1,278

Re: How to draw in legend as scatter as series

Posted in reply to DmytroYermak

You have named your scatter plot NAME="CustomLegend".  It is better to name your plot statements by what they do, like "Scatter" and "Series".  Then, you can include the appropriate names on the KEYLEGEND statement as :  keylegend "Scatter" "Series".  This will get legend entries from both statements.  If you want combined symbols as you show then put just the "Series" in the keylegend.

Regular Contributor
Posts: 214

Re: How to draw in legend as scatter as series

[ Edited ]
Posted in reply to Sanjay_SAS

Thank you for your kind help.

 

Solution
‎11-03-2017 01:57 PM
SAS Super FREQ
Posts: 1,278

Re: How to draw in legend as scatter as series

Posted in reply to DmytroYermak

You need to turn on the MARKERS in the series plot.  You can then keep only the error bars in the scatter, or leave that as is.  Include only the series plot in the legend.

Regular Contributor
Posts: 214

Re: How to draw in legend as scatter as series

Posted in reply to Sanjay_SAS

Bingo!! It has worked! Thank you!

☑ This topic is solved.

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

Discussion stats
  • 4 replies
  • 243 views
  • 2 likes
  • 2 in conversation