Data visualization with SAS programming

Jittered scatterplot shows mystery data

Occasional Contributor
Posts: 12

Jittered scatterplot shows mystery data

[ Edited ]

I'm using proc sgpanel to create scatterplots with regression lines for 2 variables in an overlay.  I've jittered the data to see it all but the resulting plot has, in addition to the filled red squares and black circles that I've specified mystery data (small, unfilled circles).  What are these, why are they there, and most importantly, how do I make them go away? Code included; 

*Assign libraries and formats;
libname in 'U:\';

proc format ;
	value tmm


options orientation=landscape nodate nonumber; 
ods pdf file="U:\test_plot.pdf" style=styles.arial;
ods graphics / reset=all border=off HEIGHT = 193.8867mm WIDTH = 266.7mm border=off; 
title '';

proc sgpanel data=in.check noautolegend;
	panelby respond /rows=1 columns=1;
	scatter x=time2 y=ki67t_pct / jitter jitterwidth=1 markerattrs=(symbol=circlefilled size=12 color=black );
	reg x=time2 y=ki67t_pct;
	scatter x=time2 y=ki67b_pct / jitter markerattrs=(symbol=squarefilled size=12 color=red );
	reg x=time2 y=ki67b_pct;
	where respond='N';
	rowaxis label ='% KI67+ on CD8+ T Cells' labelattrs=(size=14 weight=bold) VALUEATTRS= (Weight=Bold) values=(0 to 100 by 20) offsetmin=0.10;
	colaxis label=' ' labelattrs=(size=14 weight=bold) VALUEATTRS= (size=10 Weight=Bold) label="  " values=(1, 2, 8) offsetmin=0.15;
	format time2 tmm.;

ods pdf close;

ods graphics off;

data, and pdf of the plot attached.



Any help vastly appreciated.

Respected Advisor
Posts: 4,971

Re: Jittered scatterplot shows mystery data

Try adding option NOMARKERS to your reg statements.

Occasional Contributor
Posts: 12

Re: Jittered scatterplot shows mystery data

Thanks, worked like a charm!

Ask a Question
Discussion stats
  • 2 replies
  • 2 in conversation