[R] Letter with tilde

Peter Ehlers ehlers at ucalgary.ca
Thu May 24 04:09:00 CEST 2012


On 2012-05-23 16:53, Duncan Murdoch wrote:
> On 12-05-23 7:40 PM, Judith Flores wrote:
>> Hi,
>>
>>      I was unable to find documentation about how to include the letter 'n' with tilde above it, like this: ñ.
>>
>>      Is it possible to do that?
>
> Yes, just type it.  The main problem will come if you write it to a file
> and read it somewhere else; then you need to be concerned about how it
> is encoded.
>
> Duncan Murdoch

If you want that as part of plot annotation, see ?plotmath.

   plot(1, type='n')
   text(1, 1, expression(tilde(n)), cex=4)

Peter Ehlers

>
>>
>> Thank you,
>>
>> Judith
>> 	[[alternative HTML version deleted]]
>>
>>



More information about the R-help mailing list