[R] Pointing to a specific place on the x-axis with an arrow

2010-10-06 Thread Josh B
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)

Re: [R] Pointing to a specific place on the x-axis with an arrow

2010-10-06 Thread Barry Rowlingson
On Wed, Oct 6, 2010 at 1:45 AM, Josh B josh...@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

Re: [R] Pointing to a specific place on the x-axis with an arrow

2010-10-06 Thread Michael Bedward
Hi Josh, Try this... mtext(expression(symbol(\255)), side=1, line=0, at=7) Michael On 6 October 2010 11:45, Josh B josh...@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

Re: [R] Pointing to a specific place on the x-axis with an arrow

2010-10-06 Thread Ivan Calandra
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

Re: [R] Pointing to a specific place on the x-axis with an arrow

2010-10-06 Thread Michael Bedward
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.calan...@uni-hamburg.de

Re: [R] Pointing to a specific place on the x-axis with an arrow

2010-10-06 Thread David Winsemius
On Oct 6, 2010, at 5:09 AM, Michael Bedward wrote: Hi Josh, Try this... mtext(expression(symbol(\255)), side=1, line=0, at=7) For both Rowlingsons's and Bedward's solutions the request for as large as possible can be addressed with cex = 5 or some more suitable value. -- David.

Re: [R] Pointing to a specific place on the x-axis with an arrow

2010-10-06 Thread Michael Bedward
On 6 October 2010 20:51, Ivan Calandra ivan.calan...@uni-hamburg.de wrote: Moreover, Josh wanted the arrow to be really big. Is it possible to make it bigger? I would be interested too! Sorry - missed that bit. You can use the cex argument of the mtext function to make the symbol bigger.

Re: [R] Pointing to a specific place on the x-axis with an arrow

2010-10-06 Thread Barry Rowlingson
On Wed, Oct 6, 2010 at 11:04 AM, Michael Bedward michael.bedw...@gmail.com wrote: On 6 October 2010 20:51, Ivan Calandra ivan.calan...@uni-hamburg.de wrote: Moreover, Josh wanted the arrow to be really big. Is it possible to make it bigger? I would be interested too! Sorry - missed that

Re: [R] Pointing to a specific place on the x-axis with an arrow

2010-10-06 Thread Ivan Calandra
Hi again, Just one little question. I don't understand what clipping is. Probably a problem with English... Therefore the par(xpd=NA) is not really clear for me; nor is the clip() function. And I don't see any difference between par(xpd=NA) and nothing. It's not really related to this post,

Re: [R] Pointing to a specific place on the x-axis with an arrow

2010-10-06 Thread Barry Rowlingson
On Wed, Oct 6, 2010 at 12:29 PM, Ivan Calandra ivan.calan...@uni-hamburg.de wrote:  Hi again, Just one little question. I don't understand what clipping is. Probably a problem with English... Therefore the par(xpd=NA) is not really clear for me; nor is the clip() function. And I don't see

Re: [R] Pointing to a specific place on the x-axis with an arrow

2010-10-06 Thread Ivan Calandra
Thanks for the great example and explanation! Ivan Le 10/6/2010 15:06, Barry Rowlingson a écrit : On Wed, Oct 6, 2010 at 12:29 PM, Ivan Calandra ivan.calan...@uni-hamburg.de wrote: Hi again, Just one little question. I don't understand what clipping is. Probably a problem with

Re: [R] Pointing to a specific place on the x-axis with an arrow

2010-10-06 Thread Josh B
Dear Michael, Thanks very much. I have a follow-up question: how did you know that symbol 255 is the up-arrow? Josh From: Michael Bedward michael.bedw...@gmail.com Cc: R Help r-help@r-project.org Sent: Wed, October 6, 2010 5:09:48 AM Subject: Re: [R]

Re: [R] Pointing to a specific place on the x-axis with an arrow

2010-10-06 Thread David Winsemius
On Oct 6, 2010, at 9:03 AM, Josh B wrote: Dear Michael, Thanks very much. I have a follow-up question: how did you know that symbol 255 is the up-arrow? ?plomath # includes reference to : http://www.stat.auckland.ac.nz/~paul/R/CM/AdobeSym.html Josh

Re: [R] Pointing to a specific place on the x-axis with an arrow

2010-10-06 Thread David Reiner
Not sure which ones work in R, but I recently needed injection, surjection,and bijection arrows, and found them here : http://unicode.org/charts/#symbols HTH, David L. Reiner, PhD Head Quant XR Trading LLC -Original Message- From: r-help-boun...@r-project.org