[R] superscripts in xyplot labels

Yang, Richard dyang at nrcan.gc.ca
Wed Jun 19 15:48:18 CEST 2002


I tried to get a superscripted 3 in the following xyplot example but failed:


>xyplot(Gas ~ Temp | Insul, whiteside, panel =
  function(x, y, ...) {
    panel.xyplot(x, y, ...)
    panel.lmline(x, y, ...)
  }, xlab = "Average external temperature (deg. C)",
  ylab = paste(paste("Gas consumption  (1000", expression(ft^3),")"), aspect
= "xy",
  strip = function(...) strip.default(..., style = 1))

It produces a label  "Gas consumption (1000 ft^3)" for y axis insted of a
superscipted 3 as in plot(). Any workaround to produce superscripts or
subscripts for labels in xyplot()?


r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list