Hi!
I'm trying to create a plot where BMI is the vaxis and Age_grp is the horinzontal axis.
I'm getting an error message in the log: Error: At least one PLOT or BUBBLE statement must be given.
What can I do, please?
This is my program below:
proc gplot data=mclib.bmi;
plot bmi*age_gp
vaxis=axis2 haxis= axis1;
symbol1 v=dot cv=red w=0.1;
axis1 order=('Middle' 'Old' 'Young')
label=(font="arial" "Age group");
axis2 order=(15,20,25,30,35,40)
label=(font="arial" angle=90 "Body Mass Index");
run;
quit;
Please examine your code very very carefully. You are missing a semi-colon in a key place.
By the way, @PrinceAde , from now on, please show us the ENTIRE log for a given PROC if there is an error message. Do not show us just the error messages. Please copy the log as text and click on the </> icon and paste the log into the window that appears.
@PrinceAde wrote:
Hi!
I'm trying to create a plot where BMI is the vaxis and Age_grp is the horinzontal axis.
I'm getting an error message in the log: Error: At least one PLOT or BUBBLE statement must be given.
What can I do, please?
This is my program below:
proc gplot data=mclib.bmi;
plot bmi*age_gp
vaxis=axis2 haxis= axis1;
symbol1 v=dot cv=red w=0.1;
axis1 order=('Middle' 'Old' 'Young')
label=(font="arial" "Age group");
axis2 order=(15,20,25,30,35,40)
label=(font="arial" angle=90 "Body Mass Index");
run;
quit;
My guess. Look at the highlighted text above.
But I think this is not the first time it has been recommended to provide the LOG and all the notes, messages and warnings.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.