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

2007-12-06 Thread Dieter Menne
Michael Kubovy virginia.edu> writes: > > This is one of the cases where I wish there were a function that > "exercised" all the arguments of a graphics function by visualizing > the effect of changing two or three levels of each argument (one by > one, of course). This might have the side

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

2007-12-06 Thread Greg Snow
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Michael Kubovy > Sent: Thursday, December 06, 2007 2:12 AM > To: Dieter Menne > Cc: [EMAIL PROTECTED] > Subject: Re: [R] Using expression in Hmisc Key() > [snip] > This

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

2007-12-06 Thread Michael Kubovy
Hi Dieter, I actually solved *my* problem: Key(x = 0.667, y = 0.833, lev = c(expression(italic(b)), expression(italic(c)), expression(italic(d))), other = list(title = expression(italic(v)), cex.title = 1)) I was able to figure this out only by looking at the code for Key(), because

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

2007-12-05 Thread Dieter Menne
Michael Kubovy 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)), >

[R] Using expression in Hmisc Key()

2007-12-05 Thread Michael Kubovy
Dear r-helpers, How do I tell xYplot() and Key() that I want the labels in italic? I tried this: pdf(file = "khw.pdf", width = 8, height = 8) with(subset(khw, length < 1.6), xYplot(lo ~ length|sub, groups = v, aspect="xy", pch = c(1, 2, 16), col = c(2, 4, 9), xlab=expression(frac(abs(bolditalic(