[R] graphsheet and export.graph equivalents in R?
Prof Brian Ripley
ripley at stats.ox.ac.uk
Sat Jun 18 07:31:12 CEST 2011
On Fri, 17 Jun 2011, Michael Karol wrote:
> R Experts
>
>
>
> I'm currently using an S+ script of the following format and would
> like to convert it to R. The script opens a graphsheet with an
> associated name, plots something (in this case a boxplot) and then
> exports the contents of the graphsheet of the assigned name to an EMF
> file. I've been looking for something in R that would work the same way
> but to no avail.
Really?: you need to hone your searching skills! You seem to be using
Windows without telling us.
See ?windows, which links to ?savePlot.
Note that this is not a recommended way to do things even in S-PLUS
(sic). In R, use win.metafile() directly (or preferably a less flaky
graphics format: just about any other counts as 'less flaky').
>
> Could someone please show me how this or something similar is done
> in R? (I'm trying to convert to R.) Thanks.
>
>
>
> graphsheet(Name="SheetOne")
>
> boxplot(GraphSheet = "SheetOne" , split(Df01$AUC ,
> Df01$Response), varwidth=TRUE, whisklty=4, notch = TRUE, ylab ="Y" ,
> xlab = "X" )
>
> export.graph("C:/SheetOne.EMF", Name = "SheetOne", ExportType =
> "EMF" )
>
>
>
> Regards,
>
> Michael
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
That does mean you: it asked you not to send HTML but properly
formatted text email, and to give 'at a minimum' information.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help
mailing list