s-news
[Top] [All Lists]

Various problems with export.graph

To: Snews <s-news@wubios.wustl.edu>
Subject: Various problems with export.graph
From: Olivier.Renaud@pse.unige.ch
Date: Wed, 19 Sep 2001 16:08:07 +0200
S-plusers,

(Professional Edition Version 6.0.2 Release 1 for Microsoft Windows : 2001)


I have some difficulties with the function export.graph.

====(A) 

According to the help, one usually don't need the argument "Name" (of the
graphsheet):

OPTIONAL ARGUMENTS:
Name 
character string specifying the object path name for a graphsheet. The default
value uses the graphsheet that is currently active. If no graphsheet is active,
then Name is required. 

However this doesn't work for me althouth using the given argument seems OK:

> export.graph (FileName="C:/Olive/UV33_2001/tac.eps")
Problem in export.graph(FileName = "C:/Oli..: Name is a required argument 
Use traceback() to see the call stack
> args(export.graph)
function(FileName, Name = guiGetCurrMetaDoc("GraphSheet"), ...)
NULL
> guiGetCurrMetaDoc("GraphSheet")
[1] "GSD2"


=====(B)

The letters with accents that I put in a graph are correct on the wmf file after
the command
export.graph (FileName="C:/Olive/UV33_2001/tac.wmf", Name="GSD2")
but not on the eps file after the command
export.graph (FileName="C:/Olive/UV33_2001/tac.eps", Name="GSD2")

A while ago, Prof Ripley gave the following example for letters with accents in
postscript files:
> ps.options(setfont = ps.setfont.latin1)
> postscript("test.ps")
> plot(c(0, 2), c(0, 2), type="n")
> text(1, 1, "Vétérinaire")
> dev.off()
which works. However I have the two following comments/questions

(a) Although I have a keyboard with accentuated letters, I cannot type them
directly in the command line, but have to copy and paste them from another text
editor.

(b) Since the help files of postscript and ps.options are so skeletal, I imagine
that Insightful want us to depreciate these functions. Any idea on how to obtain
letters with accents in postscript with the export.graph function?



=====(C)

I would be interested to hear about possible differences in the postscript
generated by export.graph() and postscript().

Olivier
-- 
----------------------------------------------------------------------
Olivier Renaud                      mailto:Olivier.Renaud@pse.unige.ch
Faculty of Psychology and Education               Tel: +41 22 705 9104
University of Geneva   -   40, Bd du Pont d'Arve  -   CH-1211 Geneva 4
                       http://www.unige.ch/fapse/PSY/persons/prof-ana/

<Prev in Thread] Current Thread [Next in Thread>
  • Various problems with export.graph, Olivier . Renaud <=