BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
desireatem
Pyrite | Level 9

Hey,

How do I fixed this so that nothing is left our:

PROC SGPLOT data=nn1;

label Kappa_A="A, 1-R10=01, P=14/69, Sens_n=.65, Sens_o=.60, Spec_o=.60, Spec_n=.60" 

Kappa_B="B, 1-R10=.90, P=14/69 Sens_n=.65, Sens_o=.60, Spec_o=.60, Spec_n=.60" 

Kappa_C="C, 1-R10=.85, P=14/69 Sens_n=.65, Sens_o=.60, Spec_o=.60, Spec_n=.60"

Kappa_D="D, 1-R10=.80, P=14/69 Sens_n=.65, Sens_o=.60, Spec_o=.60, Spec_n=.60"

Kappa_E="E, 1-R10=.30, P=14/69 Sens_n=.65, Sens_o=.60, Spec_o=.60, Spec_n=.60"

Kappa_F="F, 1-R10=.25, P=14/69 Sens_n=.65, Sens_o=.60, Spec_o=.60, Spec_n=.60"

Kappa_G="G, 1-R10=.20, P=14/69 Sens_n=.65, Sens_o=.60, Spec_o=.60, Spec_n=.60"

Kappa_H="H, 1-R10=.10, P=14/69 Sens_n=.65, Sens_o=.60, Spec_o=.60, Spec_n=.60";

series x=R y=Kappa_A / markers ;

series x=R y=Kappa_B / markers;

series x=R y=Kappa_C / markers;

series x=R y=Kappa_D / markers;

series x=R y=Kappa_E / markers ;

series x=R y=Kappa_F / markers;

series x=R y=Kappa_G / markers;

series x=R y=Kappa_H / markers;

xaxis label = '1-R01' grid;

yaxis label = 'Kappa' grid;

run;

NOTE: There were 10 observations read from the data set WORK.NEW3.

NOTE: The data set WORK.NN3 has 10 observations and 23 variables.

NOTE: DATA statement used (Total process time):

      real time           0.04 seconds

      cpu time            0.01 seconds

4439  PROC SGPLOT data=nn2;

4440  label Kappa_A="A, 1-R10=01, P=14/69, Sens_n=.90, Sens_o=.60, Spec_o=.60, Spec_n=.60"

4441  Kappa_B="B, 1-R10=.90, P=14/69 Sens_n=.90, Sens_o=.60, Spec_o=.60, Spec_n=.60"

4442  Kappa_C="C, 1-R10=.85, P=14/69 Sens_n=.90, Sens_o=.60, Spec_o=.60, Spec_n=.60"

4443  Kappa_D="D, 1-R10=.80, P=14/69 Sens_n=.90, Sens_o=.60, Spec_o=.60, Spec_n=.60"

4444  Kappa_E="E, 1-R10=.30, P=14/69 Sens_n=.90, Sens_o=.60, Spec_o=.60, Spec_n=.60"

4445  Kappa_F="F, 1-R10=.25, P=14/69 Sens_n=.90, Sens_o=.60, Spec_o=.60, Spec_n=.60"

4446  Kappa_G="G, 1-R10=.20, P=14/69 Sens_n=.90, Sens_o=.60, Spec_o=.60, Spec_n=.60"

4447  Kappa_H="H, 1-R10=.10, P=14/69 Sens_n=.90, Sens_o=.60, Spec_o=.60, Spec_n=.60";

4448  series x=R y=Kappa_A / markers ;

4449  series x=R y=Kappa_B / markers;

4450  series x=R y=Kappa_C / markers;

4451  series x=R y=Kappa_D / markers;

4452  series x=R y=Kappa_E / markers ;

4453  series x=R y=Kappa_F / markers;

4454  series x=R y=Kappa_G / markers;

4455  series x=R y=Kappa_H / markers;

4456  xaxis label = '1-R01' grid;

4457  yaxis label = 'Kappa' grid;

4458  run;

NOTE: PROCEDURE SGPLOT used (Total process time):

      real time           0.40 seconds

      cpu time            0.11 seconds

NOTE: Some graph legends have been dropped due to size constraints. Try adjusting the

      MAXLEGENDAREA=, WIDTH= and HEIGHT= options in the ODS GRAPHICS statement.

NOTE: There were 10 observations read from the data set WORK.NN2.

1 ACCEPTED SOLUTION

Accepted Solutions
desireatem
Pyrite | Level 9

Hello Reeza, How do I do that.

What should I put in this code. I tried other option but had error messages. This is the code;

ods graphic on/ WIDTH= 3.5 in HEIGHT= 3.5in;

PROC SGPLOT data=nn4;

label Agrement_A="A, 1-R10=01, P=14/69, Sens_n=.98, Sens_o=.60, Spec_o=.60, Spec_n=.60"

Agrement_B="B, 1-R10=.90, P=14/69 Sens_n=.98, Sens_o=.60, Spec_o=.60, Spec_n=.60"

Agrement_C="C, 1-R10=.85, P=14/69 Sens_n=.98, Sens_o=.60, Spec_o=.60, Spec_n=.60"

Agrement_D="D, 1-R10=.80, P=14/69 Sens_n=.98, Sens_o=.60, Spec_o=.60, Spec_n=.60"

Agrement_E="E, 1-R10=.30, P=14/69 Sens_n=.98, Sens_o=.60, Spec_o=.60, Spec_n=.60"

Agrement_F="F, 1-R10=.25, P=14/69 Sens_n=.98, Sens_o=.60, Spec_o=.60, Spec_n=.60"

Agrement_G="G, 1-R10=.20, P=14/69 Sens_n=.98, Sens_o=.60, Spec_o=.60, Spec_n=.60"

Agrement_H="H, 1-R10=.10, P=14/69 Sens_n=.98, Sens_o=.60, Spec_o=.60, Spec_n=.60";

series x=R y=Agrement_A / markers ;

series x=R y=Agrement_B / markers;

series x=R y=Agrement_C / markers;

series x=R y=Agrement_D / markers;

series x=R y=Agrement_E / markers ;

series x=R y=Agrement_F / markers;

series x=R y=Agrement_G / markers;

series x=R y=Agrement_H / markers;

xaxis label = '1-R01' grid;

yaxis label = 'Agrement' grid;

run;

View solution in original post

3 REPLIES 3
Reeza
Super User

Try adjusting the

      MAXLEGENDAREA=, WIDTH= and HEIGHT= options in the ODS GRAPHICS statement.

desireatem
Pyrite | Level 9

Hello Reeza, How do I do that.

What should I put in this code. I tried other option but had error messages. This is the code;

ods graphic on/ WIDTH= 3.5 in HEIGHT= 3.5in;

PROC SGPLOT data=nn4;

label Agrement_A="A, 1-R10=01, P=14/69, Sens_n=.98, Sens_o=.60, Spec_o=.60, Spec_n=.60"

Agrement_B="B, 1-R10=.90, P=14/69 Sens_n=.98, Sens_o=.60, Spec_o=.60, Spec_n=.60"

Agrement_C="C, 1-R10=.85, P=14/69 Sens_n=.98, Sens_o=.60, Spec_o=.60, Spec_n=.60"

Agrement_D="D, 1-R10=.80, P=14/69 Sens_n=.98, Sens_o=.60, Spec_o=.60, Spec_n=.60"

Agrement_E="E, 1-R10=.30, P=14/69 Sens_n=.98, Sens_o=.60, Spec_o=.60, Spec_n=.60"

Agrement_F="F, 1-R10=.25, P=14/69 Sens_n=.98, Sens_o=.60, Spec_o=.60, Spec_n=.60"

Agrement_G="G, 1-R10=.20, P=14/69 Sens_n=.98, Sens_o=.60, Spec_o=.60, Spec_n=.60"

Agrement_H="H, 1-R10=.10, P=14/69 Sens_n=.98, Sens_o=.60, Spec_o=.60, Spec_n=.60";

series x=R y=Agrement_A / markers ;

series x=R y=Agrement_B / markers;

series x=R y=Agrement_C / markers;

series x=R y=Agrement_D / markers;

series x=R y=Agrement_E / markers ;

series x=R y=Agrement_F / markers;

series x=R y=Agrement_G / markers;

series x=R y=Agrement_H / markers;

xaxis label = '1-R01' grid;

yaxis label = 'Agrement' grid;

run;

ballardw
Super User

I note that all of your variables have:

P=14/69, Sens_n=.98, Sens_o=.60, Spec_o=.60, Spec_n=.60" in common in the label. You might want to move that text to a footnote or title instead of trying to fit all that into a label which may be taking up the space in your legends.

Something else to consider instead of multiple series might be a value /group where your R10 values become a group. That way if you summarize your data and add or drop a group you don't need to make sure that your variable list, label and series agree.

Just a thought.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 3713 views
  • 0 likes
  • 3 in conversation