<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Studentized Residual Plot recolor in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Studentized-Residual-Plot-recolor/m-p/972373#M25620</link>
    <description>&lt;P&gt;Sure. Of course.&lt;/P&gt;
&lt;P&gt;Just change the following line:&lt;/P&gt;
&lt;PRE&gt;%let path= c:\temp\a ;&lt;/PRE&gt;
&lt;P&gt;into&lt;/P&gt;
&lt;PRE&gt;%let path= %sysfunc(pathname(work)) ;  
&lt;/PRE&gt;
&lt;P&gt;BTW, you also need to change the path of RTF file, otherwise the RTF file would be stored at WORK library.&lt;/P&gt;</description>
    <pubDate>Sat, 09 Aug 2025 05:49:41 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2025-08-09T05:49:41Z</dc:date>
    <item>
      <title>Studentized Residual Plot recolor</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Studentized-Residual-Plot-recolor/m-p/972280#M25612</link>
      <description>&lt;P&gt;Hello. Suppose I use proc mixed to show Studentized Residuals and create .rtf file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TimurShangareev_0-1754579595450.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/108895i5E476D6923146E0B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TimurShangareev_0-1754579595450.png" alt="TimurShangareev_0-1754579595450.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I want to change color and maybe some other graph options for each plots (Labels, Tick values).&lt;/P&gt;&lt;P&gt;I can try to use option UNPACK, and then somehow by using SGRENDER and proc template and layout lattice edit all possible options and show output datasets on Layout/Graph. But I don't know how to show Right-Bottom Corner (table with statistics [these are ODS OUTPUT fitstatistics and descriptive statistics obtained using proc means on ODS OUTPUT&amp;nbsp;StudentByPredicted ]). How I can solve this?&lt;/P&gt;&lt;P&gt;Or maybe there is exists some way to edit style of StudentPanel? Something like:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;ODS RTF BODY="..." style=styles.MyStyle;
ods graphics on;
proc mixed data=inds plots=StudentPanel;&lt;BR /&gt;class &amp;amp;class.;&lt;BR /&gt;model &amp;amp;model.;
run;
ods graphics off;
ODS RTF CLOSE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Could you help me?&lt;/P&gt;&lt;P&gt;Also Tried ODS LAYOUT, but it seems that it doesn't work with RTF.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 15:33:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Studentized-Residual-Plot-recolor/m-p/972280#M25612</guid>
      <dc:creator>TimurShangareev</dc:creator>
      <dc:date>2025-08-07T15:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Studentized Residual Plot recolor</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Studentized-Residual-Plot-recolor/m-p/972307#M25613</link>
      <description>&lt;P&gt;You want this ?&lt;/P&gt;
&lt;P&gt;Here is GTL solution. Another is using PROC REPORT check the next post.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data report;
input id label  &amp;amp; $20. a &amp;amp; $20. b;
cards;
1 Residual Statistics   Observations  184
1 Residual Statistics   Minimum   184
1 Residual Statistics   Mean      184
1 Residual Statistics   Maximum   184
1 Residual Statistics   Std Dev   184
2 Fit Statistics   Objective   184
2 Fit Statistics   AIC   184
2 Fit Statistics   AICC   184
2 Fit Statistics   BIC   184
;

%let path= c:\temp;  *the path stored the picture of report and desired RTF file;


ods _all_ close;
options printerpath=png nonumber nodate papersize=(4.5cm 7cm)  ; 
title;
ods printer file="&amp;amp;path.\report.png" style=journal dpi=300;
proc report data=report nowd noheader style(report)={frame=box};
columns id label a b;
define id/order noprint;
define label/order noprint;
compute before label;
if label ne lag(label) then n+1;
if n=1 then len=0;
 else len=10;
x=' ';
line x $varying10. len;
line label $40.;
endcomp;
run;
ods printer close;




%sganno
data sganno;
 %SGIMAGE(
     IMAGE="&amp;amp;path.\report.png",
     ANCHOR="CENTER" ,
     BORDER="FALSE",
	 IMAGESCALE="FIT" ,
	 HEIGHT=100,
     HEIGHTUNIT="PERCENT",
     DRAWSPACE="LAYOUTPERCENT",
     X1=50,
     Y1=50,ID="BAR"
     )
run;
proc template;
define statgraph y2axis;
begingraph;
layout lattice /rows=2 columns=2; * columngutter=10 rowdatarange=union row2datarange=union;


layout overlay;
histogram height / scale=percent yaxis=y;
densityplot height / normal();
endlayout;

layout overlay;
scatterplot x=weight y=height;
endlayout;

layout overlay;
loessplot x=weight y=height;
endlayout;


layout overlay / walldisplay=none yaxisopts=( display=none ) xaxisopts=( display=none )  ;
scatterplot x=weight y=height/markerattrs=(color=white);
annotate / id="BAR";
endlayout;


endlayout;
endgraph;
end;
run;


ods _all_ close;
options papersize=A4 leftmargin=0in rightmargin=0in leftmargin=0in rightmargin=0in;
ods rtf file="&amp;amp;path.\want.rtf" dpi=300 style=htmlblue; 
proc sgrender data=sashelp.class template=y2axis sganno=sganno;
run;
ods rtf close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1754621930705.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/108905iDD5677C979D0F448/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1754621930705.png" alt="Ksharp_0-1754621930705.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 02:58:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Studentized-Residual-Plot-recolor/m-p/972307#M25613</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-08-08T02:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Studentized Residual Plot recolor</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Studentized-Residual-Plot-recolor/m-p/972309#M25614</link>
      <description>&lt;P&gt;And Here is PROC REPORT solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data report;
input id label  &amp;amp; $20. a &amp;amp; $20. b;
cards;
1 Residual Statistics   Observations  184
1 Residual Statistics   Minimum   184
1 Residual Statistics   Mean      184
1 Residual Statistics   Maximum   184
1 Residual Statistics   Std Dev   184
2 Fit Statistics   Objective   184
2 Fit Statistics   AIC   184
2 Fit Statistics   AICC   184
2 Fit Statistics   BIC   184
;

%let path= c:\temp\a ;  *the path stored the picture of report and desired RTF file;


ods _all_ close;
options printerpath=png nonumber nodate papersize=(4.5cm 7cm)  ; 
title;
ods printer file="&amp;amp;path.\report.png" style=journal dpi=300;
proc report data=report nowd noheader style(report)={frame=box};
columns id label a b;
define id/order noprint;
define label/order noprint;
compute before label;
if label ne lag(label) then n+1;
if n=1 then len=0;
 else len=10;
x=' ';
line x $varying10. len;
line label $40.;
endcomp;
run;
ods printer close;




options nodate nonumber;
ods listing gpath="&amp;amp;path."  style=htmlblue image_dpi=300;
ods graphics /width=3in height=3in reset=index  noborder  imagename='FAS' outputfmt=png ;
proc sgplot data=sashelp.class noautolegend ;
reg x=height y=weight/cli clm;
run;
ods graphics /width=3in height=3in reset=index  noborder  imagename='PPS' outputfmt=png;
proc sgplot data=sashelp.class;
scatter x=age y=weight;
run;
ods graphics /width=3in height=3in reset=index  noborder  imagename='SS' outputfmt=png ;
proc sgplot data=sashelp.class noautolegend ;
ellipse x=height y=weight/group=sex;
scatter x=height y=weight/group=sex;
run;



ods _all_ close;
options papersize=A4 leftmargin=0in rightmargin=0in leftmargin=0in rightmargin=0in;
ods rtf file="&amp;amp;path.\want.rtf" dpi=300 style=htmlblue; 
data x;
x=' ';y=' ';output;
x=' ';y=' ';output;
run;
title;
proc report data=x  nowd noheader style={outputwidth=100% };
column x y;
define x/display;
define y/display;
compute y;
n+1;
if n=1 then do;
call define('x','style','style={ preimage="&amp;amp;path\FAS.png"  bordertopcolor=white borderbottomcolor=white borderrightcolor=white borderleftcolor=white}');
call define('y','style','style={ preimage="&amp;amp;path\PPS.png"  bordertopcolor=white borderbottomcolor=white borderrightcolor=white borderleftcolor=white}');
end;
if n=2 then do;
call define('x','style','style={ preimage="&amp;amp;path\SS.png"  bordertopcolor=white borderbottomcolor=white borderrightcolor=white borderleftcolor=white}');
call define('y','style','style={ preimage="&amp;amp;path\report.png"  bordertopcolor=white borderbottomcolor=white borderrightcolor=white borderleftcolor=white}');
end;
endcomp;
run;
ods rtf close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1754623044510.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/108906i3209BB1EE005596D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1754623044510.png" alt="Ksharp_0-1754623044510.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 03:17:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Studentized-Residual-Plot-recolor/m-p/972309#M25614</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-08-08T03:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Studentized Residual Plot recolor</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Studentized-Residual-Plot-recolor/m-p/972323#M25617</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;I see both methods are storing images (graphs) in filesystem. Is it possible to avoid it and save it in some work environment or draw them directly in proc report?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 09:36:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Studentized-Residual-Plot-recolor/m-p/972323#M25617</guid>
      <dc:creator>TimurShangareev</dc:creator>
      <dc:date>2025-08-08T09:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Studentized Residual Plot recolor</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Studentized-Residual-Plot-recolor/m-p/972343#M25618</link>
      <description>&lt;P&gt;I mean that in my team we do not create .png files in project directly. Our figures programms (fig_Number_XXX_.sas) have to not produce addtitional files exept sas datasets or output .rtf files.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Aug 2025 13:57:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Studentized-Residual-Plot-recolor/m-p/972343#M25618</guid>
      <dc:creator>TimurShangareev</dc:creator>
      <dc:date>2025-08-08T13:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Studentized Residual Plot recolor</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Studentized-Residual-Plot-recolor/m-p/972373#M25620</link>
      <description>&lt;P&gt;Sure. Of course.&lt;/P&gt;
&lt;P&gt;Just change the following line:&lt;/P&gt;
&lt;PRE&gt;%let path= c:\temp\a ;&lt;/PRE&gt;
&lt;P&gt;into&lt;/P&gt;
&lt;PRE&gt;%let path= %sysfunc(pathname(work)) ;  
&lt;/PRE&gt;
&lt;P&gt;BTW, you also need to change the path of RTF file, otherwise the RTF file would be stored at WORK library.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Aug 2025 05:49:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Studentized-Residual-Plot-recolor/m-p/972373#M25620</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-08-09T05:49:41Z</dc:date>
    </item>
  </channel>
</rss>

