[R] SAS and R on multiple operating systems

Frank E Harrell Jr f.harrell at Vanderbilt.Edu
Tue Apr 6 15:38:48 CEST 2010


Roger DeAngelis(xlr82sas) wrote:
> Hi,
> 
>   About the forest plot.
> 
>    Some Phrarma companies demand the report and graphics follow very
> restrictive layouts.

Thank goodness that the FDA does not require that.
Frank

> 
>    SAS allows uses to use one template for graphs and tables.
> 
>    Margins have to the same for all reports.
>    Fonts, fontsizes, linewidths, boxing body, cell spacing, cell padding ...
> 
>    The output has to look perfect in MS-Word.
> 
>     I am not a R graphics expert but I tried to run the forest plot and
> output the graphs to png and svg.
> In both cases the plots were mangled. This was probably not fair, because it
> looked like the SVG issue was just a font size issue and the png issues was
> a width issue, but I know SAS tends to produce graphs that can be scaled
> post processing.
> 
> I also imported the png into word and is was right clipped.
> 
>  devSVG(file = "c:\\temp\\Rplots.svg", width = 10, height = 8,  
>  bg = "white", fg = "black", onefile=TRUE, xmlHeader=TRUE)      
>  example(forest)                                                
>  dev.off()                                                      
> 
> png("c:\\temp\\myplot.png", bg="transparent", width=700, height=500)
> example(forest)                                                     
> dev.off()                                                           
> 
>  Also I have seen 5,000 page listings in SAS.
> 
> 
> 


-- 
Frank E Harrell Jr   Professor and Chairman        School of Medicine
                      Department of Biostatistics   Vanderbilt University



More information about the R-help mailing list