Re: [R] adding hyperlinked text to pdf plot

2011-12-07 Thread David M. Schruth
Hi Justin, It sounds like you might be able to use the 'hyperplot()' function (in the 'caroline' package) for creating an html imagemap around your figure. This is assuming all that you want to do is interactivate a 2-dimensional scatter plot. You'd also lose PDF-pagination but the

[R] adding hyperlinked text to pdf plot

2011-12-05 Thread Justin Fincher
Howdy, I have read that if you put a URL in the text of a plot being saved into pdf, the result is a functional hyperlink. I am interested in having text in a plot that is linked to a URL, but I would like the text to be something other than the URL. Is this possible? Thank you. - Fincher

Re: [R] adding hyperlinked text to pdf plot

2011-12-05 Thread Ted Harding
On 05-Dec-11 18:39:21, Justin Fincher wrote: Howdy, I have read that if you put a URL in the text of a plot being saved into pdf, the result is a functional hyperlink. I am interested in having text in a plot that is linked to a URL, but I would like the text to be something other than

Re: [R] adding hyperlinked text to pdf plot

2011-12-05 Thread David Winsemius
On Dec 5, 2011, at 1:39 PM, Justin Fincher wrote: Howdy, I have read that if you put a URL in the text of a plot being saved into pdf, the result is a functional hyperlink. Don't believe everything you read. pdf(test.pdf) plot(1,1,main=http://test.gov/some.htm;) dev.off()

Re: [R] adding hyperlinked text to pdf plot

2011-12-05 Thread Yihui Xie
It seems I missed the context of this post -- who is you, and what is something other than the URL? I feel the tikzDevice package should be an option for the task. Regards, Yihui -- Yihui Xie xieyi...@gmail.com Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State

Re: [R] adding hyperlinked text to pdf plot

2011-12-05 Thread Justin Fincher
For example, say I am plotting some data that is genomic and therefore maps to a specific locus on the human genome, like a gene. I was hoping to have the title of the plot display the gene name, but have it be a link so that clicking on it would take you to those coordinates on a public browser,

Re: [R] adding hyperlinked text to pdf plot

2011-12-05 Thread Duncan Murdoch
On 05/12/2011 3:10 PM, Justin Fincher wrote: For example, say I am plotting some data that is genomic and therefore maps to a specific locus on the human genome, like a gene. I was hoping to have the title of the plot display the gene name, but have it be a link so that clicking on it would

Re: [R] adding hyperlinked text to pdf plot

2011-12-05 Thread Yihui Xie
Sorry I experimented with tikzDevice using \href{}{} but failed. You can probably try the old image hotspot technique in HTML. I remember someone did this before in R, but I cannot find the link to the work now. The key is your need to use the two functions grconvertX and grconvertY. Regards,

Re: [R] adding hyperlinked text to pdf plot

2011-12-05 Thread Paul Murrell
Hi On 6/12/2011 9:10 a.m., Justin Fincher wrote: For example, say I am plotting some data that is genomic and therefore maps to a specific locus on the human genome, like a gene. I was hoping to have the title of the plot display the gene name, but have it be a link so that clicking on it