BookmarkSubscribeRSS Feed
swannie
Obsidian | Level 7

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
		1='predose'
		2='24hr'
		8='C3W8'
	;

=run;


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.;
run;

ods pdf close;

ods graphics off;

data, and pdf of the plot attached.

 

 

Any help vastly appreciated.

2 REPLIES 2
PGStats
Opal | Level 21

Try adding option NOMARKERS to your reg statements.

PG
swannie
Obsidian | Level 7
Thanks, worked like a charm!


sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 735 views
  • 2 likes
  • 2 in conversation