I save a plot generated with R with the pdf()
function (see below). Is it possible, to add clickable hyperlinks to this plot? Alternatives to pdf()
are welcome.
pdf(file="plot.pdf",width=20,height=50)
q <- ggplot(df, aes(x=reorder(desc,Value, FUN=median), y=Value))
q + geom_boxplot(aes(fill = factor(role)))+ coord_flip()
dev.off()
where the df$desc
looks like this:
[1] "http://www.jcvi.org/cgi-bin/tigrfams/HmmReportPage.cgi?acc=TIGR02914 # EpsI_fam: EpsI family protein # Role: 141"
[2] "http://www.jcvi.org/cgi-bin/tigrfams/HmmReportPage.cgi?acc=TIGR03067 # Planc_TIGR03067: Planctomycetes uncharacterized domain TIGR03067 # Role: 157"
[3] "http://www.jcvi.org/cgi-bin/tigrfams/HmmReportPage.cgi?acc=TIGR03021 # pilP_fam: type IV pilus biogenesis protein PilP # Role: 91"
In the pdf, the link is not clickable.