Re: [R] Using expression in Hmisc Key()

From: Dieter Menne <dieter.menne_at_menne-biomed.de>
Date: Thu, 6 Dec 2007 07:17:38 +0000 (UTC)

Michael Kubovy <kubovy <at> virginia.edu> writes:

>
> Dear r-helpers,
>
> How do I tell xYplot() and Key() that I want the labels in italic?
>
....
> Key(x = 0.667, y = 0.833, other = list(title = expression(italic(v)),
> cex.title = 1,
> labels = c(expression(italic(b)), expression(italic(c)),
> expression(italic(d)))))
> dev.off()

Michael,

I have submit a similar case last week to the Bug tracker. Maybe you can raise that "enhancement request" to "defect"

http://biostat.mc.vanderbilt.edu/trac/Hmisc/ticket/21

Dieter



The Key function generated by some plot commands should have a ... parameter. Otherwise, the ... in rlegend is useless, and it would be nice to be able to suppress the box, for example.

Key = function (x = NULL, y = NULL, lev = c("No Fail", "Fail"), pch = c(16, 1)) { .. part omitted

    rlegend(x, y, legend = lev, pch = pch, ...) invisible()

}



R-help_at_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. Received on Thu 06 Dec 2007 - 07:21:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 06 Dec 2007 - 09:30:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.