Help using Base SAS procedures

[proc boxplot] different colors for VREF values ?

Reply
New Contributor
Posts: 2

[proc boxplot] different colors for VREF values ?

[ Edited ]

Hi !

I use SAS 9.4.

I want to have different colors for different horizontal lines.

It's possible ?

 

ods graphics off;
axis1 label = (height = 1 'Année') ;
axis2 order = (0 to 500 by 50) label = (height = 1 'Valeurs Pb (en µg/L)') ;
symbol value = dot cv=blue height = 1 ; 

proc boxplot data=table;
plot PB*annee / vref=90 200 400 cvref=(green green red) haxis=axis1 vaxis=axis2 lvref=3 vreflabpos=3 vreflabels=("90" "200" "400");
insetgroup N="N" min="Mini" (5.1) MEAN="Moyenne" (5.1) std="E.T." (5.1) Q2="Médiane" (5.1) max="Maxi" (5.1)
 / header = 'Statistiques descriptives par année' position=topoff;
run;

I get a syntax error for parenthesis.

Help me please. Thanksboxplot.png

Ask a Question
Discussion stats
  • 0 replies
  • 70 views
  • 0 likes
  • 1 in conversation