Hi,
I would like to put some subscript/superscript in a graphic and export
it into a pdf file.
Stuart Luppescu (thanks to him) suggested me to use expression():
> expression(hat(beta) == (X^t * X)^{-1} * X^t * y)
But it doesn't work with S+ v8 (or I don't know how to use it!). But I found
some response
elements in Graphics Help from Insightful: here is a very simple
example...
> x <- seq(from = -2, to = 2, by = 0.1)
> y <- x^2
> guiPlot("Line", DataSetValues = data.frame(x,y))
> guiCreate("MainTitle",
Name = paste(guiGetGraphName(), "$1", sep=""),
Title = "x[2] versus x where x]i[ = -2, -1.9, ..., 2",
xPosition = "3.1", yPosition = "7")
> guiModify("XAxisTitle", Name = guiGetAxisTitleName(),
Title = "\\\"Symbol\"a")
> guiModify("YAxisTitle", Name = guiGetAxisTitleName(),
Title = "\\\"Symbol\"b")
Now I would like to export my graphic into a pdf file; usually I use
> ps.options (paper="A4", setfont=ps.setfont.latin1)
> pdf.graph("myplot.pdf", horizontal=TRUE, color=T)
> ...
> dev.off()
but if I enclose the first commands into the second commands, I obtain
an empty pdf...
How can I mix all these requests?
Thank you,
Tristan Lorino
--
Laboratoire Central des Ponts et Chaussées
[Division ESAR — Section AGR]
Route de Bouaye BP 4129
44341 Bouguenais Cedex
France
Tél 33 (0)2 40 84 56 18
Fax 33 (0)2 40 84 59 92
|