hyperlinks | R Documentation |
driver to add gene list hyperlinks to the HTGM heatmap
hyperlinks(s, rownames, colnames)
s |
character path name of the file containing the HTGM svg |
rownames |
character vector of row names |
colnames |
character vector of column names |
returns the path name of the file containing the hyperlinked HTGM svg
#load("data/x_rn.RData")
#load("data/x_cn.RData")
#load("data/x_svg.RData")
s<-system.file("extdata","x_htgm.svg",package="HTGM")
# need to avoid writing to "extdata"
dir<-tempdir()
file.copy(from=s, to=dir)
hyperlinkedFileName<-hyperlinks(sprintf("%s/%s",dir,"x_htgm.svg"),x_rn,x_cn)
print("hyperlinkedFileName")
print(hyperlinkedFileName)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.