BookmarkSubscribeRSS Feed
lloydc
Calcite | Level 5

I have a PROC GPLOT with two plots. On the left-vertical axis I have AVGRSPMS, on the right-vertical axis I have MPB_Busy, and either IORATE or XFERMIBS for the horizontal axis.

Two separate plots (first is using IORATE for the x-axis, the second uses XFERMIBS as the x-axis):

I have in each 10 SYMBOLx statements, each of which uses JOIN.

I have two problems:

1. I need to use different symbol statements for each of the two plots on one graph (that is, PLOT and PLOT2) so that they aren't using the same symbols and adding confusion to which line is which plot. There can be a varying number of tests involved; ideally I can get symbol statements specifically tied to a PLOT statement.

2. In the second set of plots the output is not being JOINED.

The file B6_IORATE_4K.png is the first set of graphs created and you can see the data points are joined.

The file B6_XFER_4K.png is the second set of graphs created and you can see the data points are not joined.

Suggestions are welcome.


B6_IORATE_4K .pngB6_XFER_4K .png
2 REPLIES 2
lloydc
Calcite | Level 5

In regards to the problem (identified as #2 above) with not getting the symbols joined on the second set of graphs, that was a screw-up on my part in which I hadn't copied the SYMBOL statements.

Still looking for suggestions on how to associate the SYMBOL statements with specific tests while there can be a varying number of tests. It will eventually be part of a macro used by lots (well, a few) people for many different experiments and cut/paste isn't really an option. I suppose I can look at how many tests there are and generate only the symbol statements I need but that seems a bit cumbersome.


ballardw
Super User

If you need to keep the same symbol/color per TEST it may be that you want to move to Proc SGPlot.

The difference is each series plot (specified x and y variable) can have explicit marker and line attributes. Multiple series statements all display on the same resulting graph. So for your goal you create the individual series statements and then only display the ones for the given y variable (x should be the same for all these correct?).

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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