Re: [R] insert hyperlink into svg graphic

2023-03-08 Thread Sigbert Klinke
Hi, maybe it would be a good idea to extend plotmath by a href command. Sigbert Am 08.03.23 um 22:46 schrieb Paul Murrell: Hi On 8/03/23 15:27, Rusty Travis wrote: On 3/7/23 13:12, Paul Murrell wrote: Hi I think the main issue here is that you are *drawing* text on the graphics device, so

Re: [R] insert hyperlink into svg graphic

2023-03-08 Thread Paul Murrell
Hi On 8/03/23 15:27, Rusty Travis wrote: On 3/7/23 13:12, Paul Murrell wrote: Hi I think the main issue here is that you are *drawing* text on the graphics device, so I would only expect to see literal XML text output in the result. ''' Hope that helps Thank you for your consideration of

Re: [R] insert hyperlink into svg graphic

2023-03-07 Thread Rusty Travis
On 3/7/23 13:12, Paul Murrell wrote: > Hi > > I think the main issue here is that you are *drawing* text on the > graphics device, so I would only expect to see literal XML text output > in the result. > ''' > > Hope that helps Thank you for your consideration of the matter, but that seems extr

Re: [R] insert hyperlink into svg graphic

2023-03-07 Thread Rusty Travis
Yes, many such examples exist on the Internet. My question is the syntax of embedding such svg tags into an R title() object using the example I provided, please. On 3/7/23 07:33, Bert Gunter wrote: > Perhaps this thread on stackoverflow (from a search on "include > hyperlink in svg graphic") m

Re: [R] insert hyperlink into svg graphic

2023-03-07 Thread Paul Murrell
Hi I think the main issue here is that you are *drawing* text on the graphics device, so I would only expect to see literal XML text output in the result. If you want to affect the SVG code itself, you need a graphics device that understands the concept of hyperlinks. One way to do that is

Re: [R] insert hyperlink into svg graphic

2023-03-07 Thread Boris Steipe
This was actually the first thing that ChatGPT debugged for me. The issue was that I was able to click on the link when I displayed the raw SVG in the browser (you can use that to test whether the syntax is even correct), but not when the svg displays inside a html page with the tag. ChatGPT c

Re: [R] insert hyperlink into svg graphic

2023-03-07 Thread Bert Gunter
Perhaps this thread on stackoverflow (from a search on "include hyperlink in svg graphic") may be of use: https://stackoverflow.com/questions/41970535/a-hyperlink-in-svg-use Cheers, Bert On Tue, Mar 7, 2023 at 12:34 AM Rusty Travis wrote: > Greetings, > > I am creating plots of weather data an

[R] insert hyperlink into svg graphic

2023-03-07 Thread Rusty Travis
Greetings, I am creating plots of weather data and wish to include a link to the data source into a title() object in the plot. My syntax must be wrong though, as the hyperlink doesn't display, just the text and tags. > svg("/tmp/temps.svg", width=9, height=6) > #plot created here > title(su