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