[R] Re lational Operators in Legend
Mark Difford
mark_difford at yahoo.co.uk
Mon Aug 18 16:45:34 CEST 2008
Hi Lorenzo,
>> ...but I would like to write that 5<=k<=15.
This is one way to do what you want
plot(1,1)
legend("topright", expression(paste(R[g]~k^{1/d[f]^{small}}~5<=k, {}<=15)))
HTH, Mark.
Lorenzo Isella wrote:
>
> Dear All,
> I am sure that what I am asking can be solved by less than a
> one-liner, but I am having a hard time to get this right.
> Inside a legend environment, I do not have any problem if I issue the
> command:
> expression(""*R[g]*"~"* k^{1/d[f]^{small}}*", "*k<= {} *"15")
> but I would like to write that 5<=k<=15. It has to be trivial, but so
> far attempts like:
> expression(""*R[g]*"~"* k^{1/d[f]^{small}}*", for 5 "*<={}*" "*k<= {}
> *"15")
> always return some error message and no improvement with all the
> variations I tried out.
> Does anyone know what I am doing wrong?
> Many Thanks
>
> Lorenzo
>
> ______________________________________________
> 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.
>
>
--
View this message in context: http://www.nabble.com/Relational-Operators-in-Legend-tp19032571p19033251.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list