> From: Michael Prager <Mike.Prager@noaa.gov>
>> Any ways to put greek letters in a graph using script files in splus4.5
> windows environment ? <<
> Let me add: Is it possible to use superscripts and subscripts in graph
> labels ("xlab="...) created with scripts under SPLUS 4.5 under Windows NT?
Take a look at my function mixed.text() and relatives in the "postscriptfonts"
archive on Statlib. The purpose of these functions is to allow simple
math-like strings including subscripts and superscripts, mixed in greek
letters and other fonts, changes of character size, etc. within a label.
Use mixed.mtext() for marginal labels such xlab.
These are designed for Unix, originally, but should work reasonably well
in an NT environment with a little tinkering. The main issue in
switching to NT is that the afm() function expects to read and manipulate
the PostScript font metric files using Unix utilities. You can bypass
this in the current version by setting an option,
options(mixed.text.screen=T)
which uses a default set of font metrics; you may then need a little
fine-tuning to make things look decent, and remember that the screen to
EPS conversion is also imprecise, so it is the saved version rather than
the appearance on the screen that you want to fine-tune. The first step
in fine-tuning is to scale the spacing to be as close to optimum as possible.
The last lines of the source file include the following:
## kluge to make this work for screen devices, multiplier is a compromise
## value and can be adjusted to satisfy user's tastes
afm.screen_afm.helvetica*1.3
and playing with the multiplier should be the first step in the fine-tuning.
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news
|