I am working on a pie chart using SAS. This graph will be included in a journal paper. I am worried about the quality since I produced the same pie chart in R. The one in R looks much nicer than the one in SAS. Below are my questions concerning the graphing:
1. What type of the format should I use when I output the plot to a graph device? I tried both pdf and gif file, pdf file can't be easily inserted into a Microsoft Office document, like powerpoint. Gif file could, but the image looks poor, especially the edge of the circle looks rough. I hope the file has high-quality and is incorporated into word/powerpoint.
2. If my code doesn't produce high-quality plot. How to improve the quality? Below is my full code (One for gif device and one is pdf device).
input reactivity $20. total;
If you want an image that can be cut and pasted into a Word doc, have you tried ODS RTF??? That will put a paste-able image into an RTF file that should render nicely in Word. JOURNAL style is a black/white/gray style designed for journal publications, but you if you can have color output, then you can also try STYLE=ANALYSIS or STYLE=STATISTICAL (or any of the other SAS styles).
options center nodate nonumber;
ods rtf file='c:\temp\pie_journal.rtf' style=journal;
Thank you for your reply. This code does generate a much nicer plot than my code using pdf device. What do "device=sasprtc" and "dpi=600" mean here? Sorry not very familiar with the graphing code. Since I want to cut and paste it to a paper, pdf file has quality but can't fulfill the purpose. Do you have other suggestions?
While the best option is to produce a graphics file that can just be imported, cut & paste from pdf with good resolution is possible. Follow the instructions below.
Images that are transferred from pdf to Word, Powerpoint or other applications may have poor resolution. These instructions will help to ensure that maximum resolution is achieved.
Open the pdf file with Acrobat Reader.
To capture images, first enlarge the image with the “Zoom Tool” until the section of interest fills the screen. Then select the “Snapshot Tool” . The cursor will change to crosshairs. Capture the area of interest by clicking and then dragging the cursor across the area to be transferred. Release the cursor when the image is highlighted.
Go to the application to which the image is to be added and choose “Edit, Paste Special, Picture (Enhanced Metafile)” to deposit the image.
To crop or re-size the image, choose “View, Toolbars, Picture” to access the image editing tools.