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 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1069 views
  • 0 likes
  • 2 in conversation