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") 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 <rusytravi...@gmail.com> > wrote: > > 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(sub="produced by Rusty Travis \nusing data from <a > xlink:href=https://www.ncei.noaa.gov/cdo-web/>test</a> ", > line=-1.5, adj=1) > > dev.off() > > The goal is to create a hyperlink of the word "test" in the above > example. What is the correct syntax, please? > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > <http://www.R-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.