[R] Displaying "<=" in axis values
Boris Steipe
boris.steipe at utoronto.ca
Tue Apr 15 18:28:32 CEST 2014
... and obviously, if you want the original values:
x <- rnorm(10)
plot(x, xaxt="n")
axis(side=1, at=axTicks(1),labels=paste("≤", axTicks(1)))
B.
On 2014-04-15, at 12:19 PM, Boris Steipe wrote:
> The following works for me:
>
> x <- rnorm(10)
> plot(x, xaxt="n")
> axis(side=1, at=axTicks(1),lab=c("≤ a","≥ b","≈ c","≠ d","= e"))
>
> (In case the characters get mangled in transition:
> I have used le, ge, approx. equal, ne, and equal in this example)
>
> Cheer,s
> B.
>
>
>
> On 2014-04-15, at 11:58 AM, Dennis Fisher wrote:
>
>> R 3.0.2
>> OS X
>>
>> Colleagues
>>
>> In a graphic, the x-axis values
>> 2, 4, 6, 8, 10, 12
>>
>> I would like to present these as:
>> ≤ 2, ≤ 4, ≤ 6, ≤8, ≤ 10, ≤ 12
>>
>> I have tried to accomplish this with
>> expression
>> and
>> bquote
>> without success. Can someone provide the appropriate code?
>>
>> Thanks.
>>
>> Dennis
>>
>> Dennis Fisher MD
>> P < (The "P Less Than" Company)
>> Phone: 1-866-PLessThan (1-866-753-7784)
>> Fax: 1-866-PLessThan (1-866-753-7784)
>> www.PLessThan.com
>>
>> ______________________________________________
>> 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.
>
> ______________________________________________
> 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.
More information about the R-help
mailing list