Date: Fri, 8 Aug 2008 08:55:25 -0700
Reply-To: Seeker <zhongming@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Seeker <zhongming@GMAIL.COM>
Organization: http://groups.google.com
Subject: Save graphs into html without extra png files
Content-Type: text/plain; charset=ISO-8859-1
Howdy, gurus
I have two SAS programs and each performs similar tasks on different
data set. The plotting script is quoted below.
================================================
options nogwindow;
goptions reset=all device=png;
axis1 color=black w=1 label=('Data 1');
axis2 color=black w=1 label=('Data 2');
axis3 color=black w=1 label=('Data 3');
symbol1 v=dot c=salmon;
ODS HTML FILE="boxplot.html";
proc boxplot data=test;
plot v1 * mut/boxwidthscale=1 cframe=vligb cboxes=dagr
cboxfill= ywh nohlabel nlegend vaxis=axis1 boxconnect=median;
plot v2 * mut/boxwidthscale=1 cframe=vligb cboxes=dagr
cboxfill= ywh nohlabel nlegend vaxis=axis2 boxconnect=median;
plot v3 * mut/boxwidthscale=1 cframe=vligb cboxes=dagr
cboxfill= ywh nohlabel nlegend vaxis=axis3 boxconnect=median;
run;
ODS HTML CLOSE;
================================================
I ran the first program and it worked just fine except giving me some
extra png file named "boxplot*.png" beside html output. However, when
I ran the 2nd one, that png file from 1st run was overwritten as well
as the fig in the first html file. I guess the html has a link pointed
to the png file. Is there a way to store graphs into html so they
won't be overwritten due to this annoying link issue? (e.g. mht
format)
Thanks for your input!
Ming