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.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: