BookmarkSubscribeRSS Feed
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
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.

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?).


Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.


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
  • 2 in conversation