Graphs with min and max values attached

For questions and discussion related to graphs, reports, and other output, including issues related to presenting or publishing results.
ege_man
Posts: 85
Joined: Sat Jul 07, 2012 2:39 pm

Graphs with min and max values attached

Unread post by ege_man »

Dear All,
I have a daily data on stock returns and would like to plot the series together with their min and max values attached to their places on the line. Could you please suggest me any example?
Best
TomDoan
Posts: 7702
Joined: Wed Nov 01, 2006 4:36 pm

Re: Graphs with min and max values attached

Unread post by TomDoan »

You would use GRTEXT for that (a separate GRTEXT for the max and for the min). If you do an EXTREMUM instruction on the series first, it will give you the entries for the max and min (%MAXENT and %MINENT) and the values (%MAXIMUM and %MINIMUM), which you can use to position the text. I don't see any examples with a time series graph, but the @THRESHTEST procedure does something like this for an x-y graph.
ege_man
Posts: 85
Joined: Sat Jul 07, 2012 2:39 pm

Re: Graphs with min and max values attached

Unread post by ege_man »

Dear Tom
Thank you for your prompt reply. I would like to also see the date for max and min. Is it possible?
TomDoan
Posts: 7702
Joined: Wed Nov 01, 2006 4:36 pm

Re: Graphs with min and max values attached

Unread post by TomDoan »

%DATELABEL(%MAXENT) and %DATELABEL(%MINENT) will construct labels for the maximum and minimum entries. Note that the graph might look a bit cluttered if you try to put all that information on with the data lines.
Post Reply