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-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!

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.

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