Hi, I am producing scatter plots with sgplot, and I am placing a vertical reference line on the graph. In the legend, the symbol and legend label correctly appear for the scatter plots (a red dot followed by VO2), but I would like to hide the symbol for the vertical reference line. Currently my legend for the vertical line shows a dotted black line followed by EX = Exercise, but I want to hide the dotted black line. Any ideas? proc sgplot data=cpet15; keylegend "vo2" "ex" / border location = inside position = topleft down=4 opaque; xaxis label="Time (min)" /*min=0 max=1 */; yaxis label="VO2 and VCO2 (ml/min)" /*min=0 max=1 */; y2axis label="Work (Watts)" min=0 max=300 ; /*VO2 vs time*/ scatter x=t15_c_min y=ex_vo2 / LEGENDLABEL = "VO2" name = "vo2" MARKERATTRS= (symbol=circlefilled color=red size=6pt); /*vertical reference line*/ refline 5 / axis=x label = "EX" labelloc = inside labelpos = min legendlabel = "EX = Exercise" name = "ex" lineattrs = (pattern=4); run;
... View more