Data visualization with SAS programming

drawtext equivalent

Accepted Solution Solved
Reply
Contributor
Posts: 41
Accepted Solution

drawtext equivalent

Hello Everyone,

 

In proc template we have drawtext to put text on the graph.

Do we have any equivalent in proc sgplot ?


Accepted Solutions
Solution
‎08-14-2017 05:07 PM
SAS Super FREQ
Posts: 1,139

Re: drawtext equivalent


All Replies
Solution
‎08-14-2017 05:07 PM
SAS Super FREQ
Posts: 1,139

Re: drawtext equivalent

Yes.  SG annotation.  See recent article in Graphically Speaking.

Super User
Posts: 19,058

Re: drawtext equivalent

Two other options that may be useful:

SYMBOLCHAR or TEXT statement in PROC SGPLOT

I like those because then I'm dealing with a single dataset but it really depends on what you're trying to do.

SAS Super FREQ
Posts: 1,139

Re: drawtext equivalent

Text or Scatter with Markerchar can be used to draw text inside the plot data area.  To draw text outside the plot area, you will need to use annotate.  The SG annotate functions get scripted as DRAWTEXT statements in the generated GTL.

☑ This topic is solved.

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

Discussion stats
  • 3 replies
  • 108 views
  • 2 likes
  • 3 in conversation