SAS/Graph & ODS .. Higher Resolution Graphs??

SAS/Graph & ODS .. Higher Resolution Graphs??

Post by Cuthbertson, Dav » Thu, 06 Feb 2003 06:17:46



System: SAS 8.2 on UNIX (Solaris)

I produce multiple reports that are served to the Web on a monthly basis to
an international community.  Many are produced using ODS writing to HTML
and/or RTF files.  Quality is acceptable, except when it comes to graphs.
Have in the past used the Postscript device, but favor embedding the graphs
either into the HTML or RTF files.  Unfortunately, I'm forced to use a bit
mapped device (i.e. GIF, PNG, TIF, JPEG, etc.).  The default size of the
graphs are acceptable.  However, the resolution leaves much to be desired
(fonts unreadable, lines and symbols aren't smooth).  Is there a way to keep
the size of the graph the same, but increase the number of dots per inch??
(I've determined that it's possible to increase the number of pixels .. but
that in turn increases the size of the graph .. thus creating a graph that's
unreadable/unprintable due to cropping).  This is a production environment
and I don't have the time to 'resize' multiple graphs each run.

Should note that the desire is for the users to be able to right click on
the graphs and be able to cut-n-paste them into applications such as Word
and PowerPoint (thus PostScript and PDF aren't ideal).  ActiveX and Java
were considered but they require that the users have access to the
respective SAS drivers.

Thoughts? Ideas?

***************************************
David Cuthbertson, M.S.
Biostatistician/Associate in Biostatistics
Moffitt Cancer Center at the
University of South Florida
12902 Magnolia Drive
Tampa, FL 33612
desk:  (813) 632-1326
fax:  (813) 632-1334

***************************************

######################################################################
This transmission may be confidential or protected from disclosure and
is only for review and use by the intended recipient. Access by
anyone else is unauthorized. Any unauthorized reader is hereby
notified that any review, use, dissemination, disclosure or copying of
this information, or any act or omission taken in reliance on it, is
prohibited and may be unlawful. If you received this transmission in
error, please notify the sender immediately.  Thank you.

######################################################################

 
 
 

SAS/Graph & ODS .. Higher Resolution Graphs??

Post by Smith, Curtis, Mr, DC » Thu, 06 Feb 2003 07:01:02


Check my SUGI 27 paper on web enabling graphs. There might be something
there to help you.

http://www2.sas.com/proceedings/sugi27/Proceed27.pdf

*-------------------------------------------*
| Curtis A. Smith                           |
| Defense Contract Audit Agency             |
| Boeing Huntington Beach Resident Office   |
| 5301 Bolsa Avenue, M/C H014-A405          |
| Huntington Beach, CA 92647-2099           |
| Voice:   714-896-3311 x67492              |
| FAX:     714-896-6915                     |

*-------------------------------------------*

-----Original Message-----

Sent: Tuesday, February 04, 2003 1:18 PM

Subject: SAS/Graph & ODS .. Higher Resolution Graphs??

System: SAS 8.2 on UNIX (Solaris)

I produce multiple reports that are served to the Web on a monthly basis
to an international community.  Many are produced using ODS writing to
HTML and/or RTF files.  Quality is acceptable, except when it comes to
graphs. Have in the past used the Postscript device, but favor embedding
the graphs either into the HTML or RTF files.  Unfortunately, I'm forced
to use a bit mapped device (i.e. GIF, PNG, TIF, JPEG, etc.).  The
default size of the graphs are acceptable.  However, the resolution
leaves much to be desired (fonts unreadable, lines and symbols aren't
smooth).  Is there a way to keep the size of the graph the same, but
increase the number of dots per inch?? (I've determined that it's
possible to increase the number of pixels .. but that in turn increases
the size of the graph .. thus creating a graph that's
unreadable/unprintable due to cropping).  This is a production
environment and I don't have the time to 'resize' multiple graphs each
run.

Should note that the desire is for the users to be able to right click
on the graphs and be able to cut-n-paste them into applications such as
Word and PowerPoint (thus PostScript and PDF aren't ideal).  ActiveX and
Java were considered but they require that the users have access to the
respective SAS drivers.

Thoughts? Ideas?

***************************************
David Cuthbertson, M.S.
Biostatistician/Associate in Biostatistics
Moffitt Cancer Center at the
University of South Florida
12902 Magnolia Drive
Tampa, FL 33612
desk:  (813) 632-1326
fax:  (813) 632-1334

***************************************

######################################################################
This transmission may be confidential or protected from disclosure and
is only for review and use by the intended recipient. Access by anyone
else is unauthorized. Any unauthorized reader is hereby notified that
any review, use, dissemination, disclosure or copying of this
information, or any act or omission taken in reliance on it, is
prohibited and may be unlawful. If you received this transmission in
error, please notify the sender immediately.  Thank you.

######################################################################


 
 
 

SAS/Graph & ODS .. Higher Resolution Graphs??

Post by Cuthbertson, Dav » Thu, 06 Feb 2003 23:25:24


Thanks for your reply, and for the link.  I read through the paper last
night.  Personally, I like the idea of using web enabled graphs.  I created
many in the development phase, and was quite impressed with the quality and
flexibility. Within our institution, I definitely plan on using these tools
more often.

Unfortunately, the community of users that will be viewing my reports
consist mainly of international MDs and Nurses; most of which are not
computer savy (i.e. most would either not have the time or the know how to
download the appropriate SAS drivers).  Additionally, many of them are using
older systems (i.e. which wouldn't be able to run JAVA or ActiveX).

Thanks again for your paper .. It was very good.

-----Original Message-----

Sent: Tuesday, February 04, 2003 5:01 PM

Subject: RE: SAS/Graph & ODS .. Higher Resolution Graphs??

Check my SUGI 27 paper on web enabling graphs. There might be something
there to help you.

http://www2.sas.com/proceedings/sugi27/Proceed27.pdf

*-------------------------------------------*
| Curtis A. Smith                           |
| Defense Contract Audit Agency             |
| Boeing Huntington Beach Resident Office   |
| 5301 Bolsa Avenue, M/C H014-A405          |
| Huntington Beach, CA 92647-2099           |
| Voice:   714-896-3311 x67492              |
| FAX:     714-896-6915                     |

*-------------------------------------------*

-----Original Message-----

Sent: Tuesday, February 04, 2003 1:18 PM

Subject: SAS/Graph & ODS .. Higher Resolution Graphs??

System: SAS 8.2 on UNIX (Solaris)

I produce multiple reports that are served to the Web on a monthly basis
to an international community.  Many are produced using ODS writing to
HTML and/or RTF files.  Quality is acceptable, except when it comes to
graphs. Have in the past used the Postscript device, but favor embedding
the graphs either into the HTML or RTF files.  Unfortunately, I'm forced
to use a bit mapped device (i.e. GIF, PNG, TIF, JPEG, etc.).  The
default size of the graphs are acceptable.  However, the resolution
leaves much to be desired (fonts unreadable, lines and symbols aren't
smooth).  Is there a way to keep the size of the graph the same, but
increase the number of dots per inch?? (I've determined that it's
possible to increase the number of pixels .. but that in turn increases
the size of the graph .. thus creating a graph that's
unreadable/unprintable due to cropping).  This is a production
environment and I don't have the time to 'resize' multiple graphs each
run.

Should note that the desire is for the users to be able to right click
on the graphs and be able to cut-n-paste them into applications such as
Word and PowerPoint (thus PostScript and PDF aren't ideal).  ActiveX and
Java were considered but they require that the users have access to the
respective SAS drivers.

Thoughts? Ideas?

***************************************
David Cuthbertson, M.S.
Biostatistician/Associate in Biostatistics
Moffitt Cancer Center at the
University of South Florida
12902 Magnolia Drive
Tampa, FL 33612
desk:  (813) 632-1326
fax:  (813) 632-1334

***************************************

######################################################################
This transmission may be confidential or protected from disclosure and
is only for review and use by the intended recipient. Access by anyone
else is unauthorized. Any unauthorized reader is hereby notified that
any review, use, dissemination, disclosure or copying of this
information, or any act or omission taken in reliance on it, is
prohibited and may be unlawful. If you received this transmission in
error, please notify the sender immediately.  Thank you.

######################################################################

######################################################################
This transmission may be confidential or protected from disclosure and
is only for review and use by the intended recipient. Access by
anyone else is unauthorized. Any unauthorized reader is hereby
notified that any review, use, dissemination, disclosure or copying of
this information, or any act or omission taken in reliance on it, is
prohibited and may be unlawful. If you received this transmission in
error, please notify the sender immediately.  Thank you.

######################################################################

 
 
 

SAS/Graph & ODS .. Higher Resolution Graphs??

Post by Cuthbertson, Dav » Thu, 06 Feb 2003 23:38:21


I think you're right .. the font selection in UNIX is one part of the
problem.  True-Type fonts are not available in the UNIX environment ... so
the best I have available to me are 'swissb' or 'swissl'.  Unsure of the
answer to your question regarding the availability of some True-Type
equivalent.  I would guess not, but maybe someone in the SASL knows the
answer.

As far as the graph you sent .. yes, it was much better than what I'm able
to produce currently.  (It's still too bad that it isn't as sharp as a what
one can get using a Postscript or PDF device.)  I'm been fighting the notion
of porting my application over to PC.  However, based on the quality of the
graph you sent, I might have to do that if a solution isn't available.

Thanks so much for your reply,

PS.  Yes, I knew Dorothy Parker.  When she was here, our paths overlapped on
a few projects.  Last I heard she was down in Miami ... Is she still there?

-----Original Message-----

Sent: Tuesday, February 04, 2003 5:11 PM
To: Cuthbertson, David
Subject: Re: SAS/Graph & ODS .. Higher Resolution Graphs??

Hi.  As for fonts --- what are you using?  I'm not sure how SAS/GRAPH works
on UNIX for access to non-SAS fonts.  I use SAS/GRAPH on a PC and can use
True-Type fonts in GIF files.  Are the attached 'acceptable' ?  Just
curious - done with SAS using the Tahoma font.  Is there a UNIX equivalent
to True-Type fonts or are you stuck with the SAS stroke fonts?

(See attached file: ast114.gif)(See attached file: asthma.doc)

PS  Did you know Dorothy Parker (ex-Moffitt employee).

Mike Zdeb
New York State Department of Health
ESP Tower - Room 1811
Albany, NY   12237
P/518-473-2855  F/630-604-1475

                      "Cuthbertson,

                      David"                   To:


                      .USF.EDU>                Subject:  SAS/Graph & ODS ..
Higher Resolution Graphs??
                      Sent by: "SAS(r)

                      Discussion"


                      GA.EDU>

                      02/04/03 04:17 PM

                      Please respond to

                      "Cuthbertson,

                      David"

System: SAS 8.2 on UNIX (Solaris)

I produce multiple reports that are served to the Web on a monthly basis to
an international community.  Many are produced using ODS writing to HTML
and/or RTF files.  Quality is acceptable, except when it comes to graphs.
Have in the past used the Postscript device, but favor embedding the graphs
either into the HTML or RTF files.  Unfortunately, I'm forced to use a bit
mapped device (i.e. GIF, PNG, TIF, JPEG, etc.).  The default size of the
graphs are acceptable.  However, the resolution leaves much to be desired
(fonts unreadable, lines and symbols aren't smooth).  Is there a way to
keep
the size of the graph the same, but increase the number of dots per inch??
(I've determined that it's possible to increase the number of pixels .. but
that in turn increases the size of the graph .. thus creating a graph
that's
unreadable/unprintable due to cropping).  This is a production environment
and I don't have the time to 'resize' multiple graphs each run.

Should note that the desire is for the users to be able to right click on
the graphs and be able to cut-n-paste them into applications such as Word
and PowerPoint (thus PostScript and PDF aren't ideal).  ActiveX and Java
were considered but they require that the users have access to the
respective SAS drivers.

Thoughts? Ideas?

***************************************
David Cuthbertson, M.S.
Biostatistician/Associate in Biostatistics
Moffitt Cancer Center at the
University of South Florida
12902 Magnolia Drive
Tampa, FL 33612
desk:  (813) 632-1326
fax:  (813) 632-1334

***************************************

######################################################################
This transmission may be confidential or protected from disclosure and
is only for review and use by the intended recipient. Access by
anyone else is unauthorized. Any unauthorized reader is hereby
notified that any review, use, dissemination, disclosure or copying of
this information, or any act or omission taken in reliance on it, is
prohibited and may be unlawful. If you received this transmission in
error, please notify the sender immediately.  Thank you.

 ######################################################################

######################################################################
This transmission may be confidential or protected from disclosure and
is only for review and use by the intended recipient. Access by
anyone else is unauthorized. Any unauthorized reader is hereby
notified that any review, use, dissemination, disclosure or copying of
this information, or any act or omission taken in reliance on it, is
prohibited and may be unlawful. If you received this transmission in
error, please notify the sender immediately.  Thank you.

######################################################################

 
 
 

SAS/Graph & ODS .. Higher Resolution Graphs??

Post by Cuthbertson, Dav » Fri, 07 Feb 2003 00:03:47


Thank you for your reply ... appreciate your suggestions.

As you have stated, I have played around extensively with varying the hsize,
ymax, xmax, xpixels, ypixels, etc. options.  Unfortunately, I'm stuck.  One
option that intrigued me which I read about was to create my own device.
Unfortunately, the documentation is poor, plus it seemed to me that the
pixel selection was directly related to the size of the graph .. rather than
dots per inch.  Currently, I can create large GIFs that contain more pixels
which look fine ... but I'm trying to avoid having to resize each within my
production runs.

As far as JAVA ... As I stated in my reply to Curtis, I would prefer it's
use.  However, the technical ability of the users (international MDs and
Nurses) of my reports is low making it unfeasible.

Thanks you again for your suggestions,

Dave

-----Original Message-----

Sent: Wednesday, February 05, 2003 4:28 AM
To: Cuthbertson, David
Subject: Re: SAS/Graph & ODS .. Higher Resolution Graphs??

David,
You seems have already tested a lot of ways: perhaps in 8.2 we cannot do
more!

The first to see is of course the full use of vsize hsize ymax ymax and in
some cases xpixels and ypixels

About the target   gif or the old cgmofP.. device.  is best for html and
jpeg for rtf destination

Then you have to try many times about font choice and weigth/height...

But you are speaking about Java
Indeed the Curtis paper seems usefull and remember Java is more universal
than activex: it works on IE Netscape and Opera without problem
In matter of creation the only problem is to copy the graphapp  or
mapapp.jar
from Shared file\applets to the user as an auxiliary file!

HTH
Andre


>System: SAS 8.2 on UNIX (Solaris)

>I produce multiple reports that are served to the Web on a monthly basis to
>an international community.  Many are produced using ODS writing to HTML
>and/or RTF files.  Quality is acceptable, except when it comes to graphs.
>Have in the past used the Postscript device, but favor embedding the graphs
>either into the HTML or RTF files.  Unfortunately, I'm forced to use a bit
>mapped device (i.e. GIF, PNG, TIF, JPEG, etc.).  The default size of the
>graphs are acceptable.  However, the resolution leaves much to be desired
>(fonts unreadable, lines and symbols aren't smooth).  Is there a way to
keep
>the size of the graph the same, but increase the number of dots per inch??
>(I've determined that it's possible to increase the number of pixels .. but
>that in turn increases the size of the graph .. thus creating a graph
that's
>unreadable/unprintable due to cropping).  This is a production environment
>and I don't have the time to 'resize' multiple graphs each run.

>Should note that the desire is for the users to be able to right click on
>the graphs and be able to cut-n-paste them into applications such as Word
>and PowerPoint (thus PostScript and PDF aren't ideal).  ActiveX and Java
>were considered but they require that the users have access to the
>respective SAS drivers.

>Thoughts? Ideas?

>***************************************
>David Cuthbertson, M.S.
>Biostatistician/Associate in Biostatistics
>Moffitt Cancer Center at the
>University of South Florida
>12902 Magnolia Drive
>Tampa, FL 33612
>desk:  (813) 632-1326
>fax:  (813) 632-1334

>***************************************

>######################################################################
>This transmission may be confidential or protected from disclosure and
>is only for review and use by the intended recipient. Access by
>anyone else is unauthorized. Any unauthorized reader is hereby
>notified that any review, use, dissemination, disclosure or copying of
>this information, or any act or omission taken in reliance on it, is
>prohibited and may be unlawful. If you received this transmission in
>error, please notify the sender immediately.  Thank you.

>######################################################################

___________
WIELKI  Andre
INED - Service Informatique
133 Bd Davout,
75 980 Paris  Cedex 20
FRANCE
Tel: 01 56 06 21 54

######################################################################
This transmission may be confidential or protected from disclosure and
is only for review and use by the intended recipient. Access by
anyone else is unauthorized. Any unauthorized reader is hereby
notified that any review, use, dissemination, disclosure or copying of
this information, or any act or omission taken in reliance on it, is
prohibited and may be unlawful. If you received this transmission in
error, please notify the sender immediately.  Thank you.

######################################################################

 
 
 

SAS/Graph & ODS .. Higher Resolution Graphs??

Post by jone » Fri, 07 Feb 2003 04:23:23


Perhaps I am mistake, but I was under the impression that the java applet
that SAS provides simply needed to reside on the web server (I don't know
about any licensing issues here, however) and it would enable your users to
view the java graph. I believe you would need to use the codebase= and
archive= ods options to point to the graphapp.jar file. You may want to
reconsider the use of Java.
________________________________________________________________________
Date:    Wed, 5 Feb 2003 10:03:47 -0500

Subject: Re: SAS/Graph & ODS .. Higher Resolution Graphs??

Thank you for your reply ... appreciate your suggestions.

As you have stated, I have played around extensively with varying the hsize,
ymax, xmax, xpixels, ypixels, etc. options.  Unfortunately, I'm stuck.  One
option that intrigued me which I read about was to create my own device.
Unfortunately, the documentation is poor, plus it seemed to me that the
pixel selection was directly related to the size of the graph .. rather than
dots per inch.  Currently, I can create large GIFs that contain more pixels
which look fine ... but I'm trying to avoid having to resize each within my
production runs.

As far as JAVA ... As I stated in my reply to Curtis, I would prefer it's
use.  However, the technical ability of the users (international MDs and
Nurses) of my reports is low making it unfeasible.

Thanks you again for your suggestions,

Dave

 
 
 

SAS/Graph & ODS .. Higher Resolution Graphs??

Post by Richard A. DeVenezi » Fri, 07 Feb 2003 05:31:12



Quote:> System: SAS 8.2 on UNIX (Solaris)

> I produce multiple reports that are served to the Web on a monthly basis
to
> an international community.  Many are produced using ODS writing to HTML
> and/or RTF files.  Quality is acceptable, except when it comes to graphs.
> Have in the past used the Postscript device, but favor embedding the
graphs
> either into the HTML or RTF files.  Unfortunately, I'm forced to use a
bit
> mapped device (i.e. GIF, PNG, TIF, JPEG, etc.).  The default size of the
> graphs are acceptable.  However, the resolution leaves much to be desired
> (fonts unreadable, lines and symbols aren't smooth).  Is there a way to
keep
> the size of the graph the same, but increase the number of dots per
inch??
> (I've determined that it's possible to increase the number of pixels ..
but
> that in turn increases the size of the graph .. thus creating a graph
that's
> unreadable/unprintable due to cropping).  This is a production
environment
> and I don't have the time to 'resize' multiple graphs each run.

> Should note that the desire is for the users to be able to right click on
> the graphs and be able to cut-n-paste them into applications such as Word
> and PowerPoint (thus PostScript and PDF aren't ideal).  ActiveX and Java
> were considered but they require that the users have access to the
> respective SAS drivers.

> Thoughts? Ideas?

TIFF is an image format that can handle user specified dpi, I believe png
and gif are always 96dpi.
Thus, you can modify a copy of one of the TIFFx devices to be a higher
resolution than 96dpi put out by gif or png.  You need 3-times x and y
pixels to get a 300 dpi output.  I found 300 dpi to be a good tradeoff
between filesize and 'good enough' resolution.
You need to setup a libref GDEVICEn (n=0..9) and use Proc GDEVICE, COPY and
MODIFY statements to tweak the device settings.

I haven't figured out a way to use ODS and have it push out .tif's instead
of .gif's.  I typically use goption goutmode=replace and /name="Whatever"
in my Procs.  With ODS the Procs output ends up in Whatever.gif.

--
Richard A. DeVenezia
http://www.devenezia.com/downloads/sas/macros/#FindFiles
Get file information from Windows

 
 
 

SAS/Graph & ODS .. Higher Resolution Graphs??

Post by WIELKI And » Sat, 08 Feb 2003 22:06:37


Joneil (and David,)

You are right about the only ncessity to have the htm file and the jar file
on the web server
with the right codebase (codebase="http://......." archive="graphapp.jar")
to view a java graph
at distance.
But unfortunately, Sas have made or accepted  some regression in that case:

Actually Netscape does not work more with this java-sas applet!

Version of netscape 4.7 (an old old one) is ok
but Netscape7 (or 6) does not work more  (i have tried with java plugin
1.3.1 and 1.4.0)
So the java solution is restricted to IE = Microsoft.... as the activex
solution!

In the case of Opera 6.5(a free,light,european based one in third position
on the market), I have some javascript error upon the object
CategoryRole0.Perhaps is it related to the fact that Opera does not have
implement all the jscript particularities of Microsoft(little differences
implement by M... to struggle with Netscape the "creator" of Javascript!
Those last lines are for connaissor :-).

HTH
Andre

___________
WIELKI  Andre
INED - Service Informatique
133 Bd Davout,
75 980 Paris  Cedex 20
FRANCE
Tel: 01 56 06 21 54