Data visualization with SAS programming

NOTE: Some graph legends have been dropped due to size constraints. Try adjusting the MAXLEGENDAREA=, WIDTH= and HEIGHT= options in the ODS GRAPHICS statement.

Accepted Solution Solved
Reply
Super Contributor
Posts: 271
Accepted Solution

NOTE: Some graph legends have been dropped due to size constraints. Try adjusting the MAXLEGENDAREA=, WIDTH= and HEIGHT= options in the ODS GRAPHICS statement.

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.


Accepted Solutions
Solution
‎04-30-2014 02:31 PM
Super Contributor
Posts: 271

Re: NOTE: Some graph legends have been dropped due to size constraints. Try adjusting the MAXLEGENDAREA=, WIDTH= and HEIGHT= options in the ODS GRAPHICS statement.

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


All Replies
Grand Advisor
Posts: 16,349

Re: NOTE: Some graph legends have been dropped due to size constraints. Try adjusting the MAXLEGENDAREA=, WIDTH= and HEIGHT= options in the ODS GRAPHICS statement.

Try adjusting the

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

Solution
‎04-30-2014 02:31 PM
Super Contributor
Posts: 271

Re: NOTE: Some graph legends have been dropped due to size constraints. Try adjusting the MAXLEGENDAREA=, WIDTH= and HEIGHT= options in the ODS GRAPHICS statement.

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;

Grand Advisor
Posts: 9,740

Re: NOTE: Some graph legends have been dropped due to size constraints. Try adjusting the MAXLEGENDAREA=, WIDTH= and HEIGHT= options in the ODS GRAPHICS statement.

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.

Post a Question
Discussion Stats
  • 3 replies
  • 600 views
  • 0 likes
  • 3 in conversation