Re: [R] alignment problem for italicised legend text in pdf output from a barplot

2013-08-20 Thread David Winsemius
On Aug 20, 2013, at 2:28 PM, Nixon, John wrote: > A minimal R source code file producing this is: > > data=c(1,2) > pdf(file="error.pdf") > barplot(data) > legend(1.5,c(expression(italic("C.sativa"),italic("B.rapa"))),horiz=TRUE) > dev.off() > > The problem is that the two italicised strings ar

[R] alignment problem for italicised legend text in pdf output from a barplot

2013-08-20 Thread Nixon, John
A minimal R source code file producing this is: data=c(1,2) pdf(file="error.pdf") barplot(data) legend(1.5,c(expression(italic("C.sativa"),italic("B.rapa"))),horiz=TRUE) dev.off() The problem is that the two italicised strings are not aligned in the pdf output, with the string on the left being