BookmarkSubscribeRSS Feed
geneD
Calcite | Level 5
Hello All:

I am a long time SAS user but have only begun to explore the mysteries of the GTL language. Here is what I am trying to do. I am trying to create a three panel vertical set of graphs that share the same x-axis (a sas date field). The top graph is a line plot and the second or middle graph is a blockplot. I have been able to create both of them in GTL and gotten the graphs to share the same x axis. The third and bottom plot is the one I am having trouble with and have not been able to create using GTL. That third plot is more of a timeline that lists events through time (again, the shared X axis). I originally created it as an annotate dataset which I then use to annotate a dummy plot. The question I have is two fold:

1) Is GTL compatible with the annotate facility? My initial review of documentation suggests no. 8-(

2) If not, is there a way of achieving the same results in GTL? Could I create a dummy plot and use some statement (vectorplot?) to create labels and lines to populate it?

I am looking for general guidance, no need to provide specific code.

Thanks very much!!!

Gene
2 REPLIES 2
DanH_sas
SAS Super FREQ
Hey Gene,

Trying using a SCATTERPLOT statement with the MARKERCHARACTER option. The MARKERCHARACTER option takes a column name. The values in the column will plotted like scatter markers. You will get effect similar to annotating text in data space. Let me know if you have any questions about the option.

Thanks!
Dan
geneD
Calcite | Level 5
Super! Nothing like a little creativity to work around existing limitations!

Best,

Gene

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 2 replies
  • 788 views
  • 0 likes
  • 2 in conversation