raz
2013-Jan-23 16:45 UTC
[R] italic font for legend text when using expression function for symbols
Hello,
I'm trying to add a symbol (Delta) to plot legend with text using
"expression(paste())" but this disables the text.font that allows to
use
bold or italic text.
as follows:
x=c(1:10)
y=c(1:10)
plot(x,y)
legend(1,10,legend=c("A","B","C",expression(paste(Delta,
D))),
pch=c(24,18,17,16),cex=2,text.font=3,bty="n")
Any suggestion to how I can add the Delta symbol and have a italic font?
Thanks
--
\m/
[[alternative HTML version deleted]]
ilai
2013-Jan-23 18:45 UTC
[R] italic font for legend text when using expression function for symbols
plot(1)
legend('topleft',legend=expression(A,italic(A),bolditalic(A),Delta*italic(D)))
On Wed, Jan 23, 2013 at 9:45 AM, raz <barvazduck@gmail.com> wrote:
> Hello,
>
> I'm trying to add a symbol (Delta) to plot legend with text using
> "expression(paste())" but this disables the text.font that allows
to use
> bold or italic text.
> as follows:
> x=c(1:10)
> y=c(1:10)
> plot(x,y)
>
legend(1,10,legend=c("A","B","C",expression(paste(Delta,
D))),
> pch=c(24,18,17,16),cex=2,text.font=3,bty="n")
>
> Any suggestion to how I can add the Delta symbol and have a italic font?
>
> Thanks
>
> --
> \m/
>
> [[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.
>
[[alternative HTML version deleted]]