[R] adding hyperlinked text to pdf plot

David Winsemius dwinsemius at comcast.net
Mon Dec 5 20:05:14 CET 2011


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



More information about the R-help mailing list