On 2011-02-10 18:41, Dennis Murphy wrote:
Hi:

Here's one way:

  plot(1~1,ylab=expression("Areas ("~mu*m^2~")"))

The tildes incorporate space between the math and text elements; they're
optional, but useful. Another way that also works is

plot(1~1,ylab=expression(paste("Areas (", mu*m^2, ")", sep = ' ')))

 plot(1:5, type="n", axes=FALSE, ann=FALSE)
 abline(v=3, col="lightgray")
 text(3, 3.5, expression(
   paste("Areas (", mu * m^2, ")", sep = "               ")))
 text(3, 3.0, expression(
   paste("Areas (", mu * m^2, ")", sep = "xxxx")))
 text(3, 2.5, expression(
   paste("Areas (", mu * m^2, ")", "xxxx")))


Peter Ehlers


HTH,
Dennis

On Thu, Feb 10, 2011 at 4:32 PM, Lizblip<home-sick_al...@hotmail.com>wrote:



Duncan Murdoch-2 wrote:


There is no plotmath function.  "plotmath" is the name of the help
topic; it describes how various other functions plot text that includes
math.


grDevices is a base package, so if you've got R, you've got it.

Duncan Murdoch



ok thanks.

I originally thought this was the case and first tried:

plot(areas~cell,ylab=expression("Areas (mu*m^2"))

but the text wasn't re-formatted so I thought plotmath must be a separate
function. How is it supposed to work?
--
View this message in context:
http://r.789695.n4.nabble.com/Where-can-I-download-install-grDevices-tp2401415p3300559.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@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
and provide commented, minimal, self-contained, reproducible code.


        [[alternative HTML version deleted]]

______________________________________________
R-help@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
and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help@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
and provide commented, minimal, self-contained, reproducible code.

Reply via email to