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
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 > the URL. Is this possible? Thank you. > > - FincherThe "kosher" method of doing this kind of thing (and a host of other interactive elements in a PDF file) would be to incorporate a so-called PDFmark into the PDF code. See for instance: http://www.pdflib.com/developer/technical-documentation/ books/pdfmark-primer/ There are various ways of doing this in some document-preparation programs, but I don't know whether it would be easy to do this when creating a PDF in R. In mt experience, this involves first passing via PostScript. Any comments, anyone? Ted. -------------------------------------------------------------------- E-Mail: (Ted Harding) <ted.harding at wlandres.net> Fax-to-email: +44 (0)870 094 0861 Date: 05-Dec-11 Time: 18:58:53 ------------------------------ XFMail ------------------------------
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() "Non-functioning" text.> 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 >David Winsemius, MD West Hartford, CT
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 <xieyihui at gmail.com> Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Mon, Dec 5, 2011 at 12:39 PM, Justin Fincher <fincher at cs.fsu.edu> 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 the URL. Is this possible? Thank you. > > - Fincher > > ______________________________________________ > 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.