[R] Pointing to a specific place on the x-axis with an arrow
Michael Bedward
michael.bedward at gmail.com
Wed Oct 6 12:02:33 CEST 2010
Hi Ivan,
The help page for plotmath has a list of symbol names such as the one
Barry suggested, and in the References section there is a URL (the
auckland.ac.nz one) for a table of symbols and their numeric codes.
Michael
On 6 October 2010 20:51, Ivan Calandra <ivan.calandra at uni-hamburg.de> wrote:
> Hi Michael,
>
> I'm just curious if you know about a list somewhere where I can find the
> number of a specific symbol. What I mean, with your example, is how to
> find that an arrow corresponds to "\255".
>
> Moreover, Josh wanted the arrow to be really big. Is it possible to make
> it bigger? I would be interested too!
>
> Thanks,
> Ivan
>
> Le 10/6/2010 11:09, Michael Bedward a écrit :
>> Hi Josh,
>>
>> Try this...
>>
>> mtext(expression(symbol("\255")), side=1, line=0, at=7)
>>
>> Michael
>>
>>
>> On 6 October 2010 11:45, Josh B<joshb41 at yahoo.com> wrote:
>>> Hi all,
>>>
>>> I am trying to do something simple, but which is deviling me. I want to add an
>>> up-arrow to the x-axis, pointing to a specific location on the axis. I want the
>>> arrow to be as large as possible.
>>>
>>> Here is where I'm at with my code:
>>>
>>> #this part if from the ?plot example:
>>> require(stats)
>>> plot(cars)
>>> lines(lowess(cars))
>>> #I am trying to use mtext to add the arrow... but I don't know how to do it:
>>> mtext("?", side = 1, line = 0, at = 7)
>>> #that question mark is a place-holder for the arrow. How do I put an up-arrow
>>> there instead of the question mark -- as large as possible?
>>>
>>> Many thanks to all of you in advance.
>>> -----------------------------------
>>> Josh Banta, Ph.D
>>> Center for Genomics and Systems Biology
>>> New York University
>>> 100 Washington Square East
>>> New York, NY 10003
>>> Tel: (212) 998-8465
>>> http://plantevolutionaryecology.org
>>>
>>>
>>>
>>>
>>> [[alternative HTML version deleted]]
>>>
>>> ______________________________________________
>>> 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.
>>
>
> --
> Ivan CALANDRA
> PhD Student
> University of Hamburg
> Biozentrum Grindel und Zoologisches Museum
> Abt. Säugetiere
> Martin-Luther-King-Platz 3
> D-20146 Hamburg, GERMANY
> +49(0)40 42838 6231
> ivan.calandra at uni-hamburg.de
>
> **********
> http://www.for771.uni-bonn.de
> http://webapp5.rrz.uni-hamburg.de/mammals/eng/mitarbeiter.php
>
>
> [[alternative HTML version deleted]]
>
>
> ______________________________________________
> 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