BookmarkSubscribeRSS Feed
Ken_oy
Fluorite | Level 6
Hi, need help,

I want to use PROC GPLOT to create (three plots, one page):

{ plot Freq*rd (when gp=1) } overlay
{ plot Freq*rd (when gp=2) } overlay
{ plot Freq*rd (when gp=3) }

I try the BY statement, but it gives me separated plots. How can I do that?
please see the dataset below
------------------------------------------
rd gp Freq

0.8 1 0.000
1.9 1 0.000
0.6 2 0.448
0.8 2 0.448
1.9 2 0.448
0.6 3 0.000
0.8 3 0.000
1.9 3 0.000


Thank you so much!! Message was edited by: Ken_oy
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
You might look at the GPLOT examples of plotting multiple overlays in one PLOT output. For example, one way to plot multiple lines is to have:
[pre]
plot yvar*xvar=catvar;
...which for your example would seem to be...
plot freq*rd=gp;
[/pre]

cynthia
Ken_oy
Fluorite | Level 6
Thanks!! It works!

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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