Learn R Programming

HTGM (version 1.1)

hyperlinks: hyperlinks

Description

driver to add gene list hyperlinks to the HTGM heatmap

Usage

hyperlinks(s, rownames, colnames)

Value

returns the path name of the file containing the hyperlinked HTGM svg

Arguments

s

character path name of the file containing the HTGM svg

rownames

character vector of row names

colnames

character vector of column names

Examples

Run this code
#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)

Run the code above in your browser using DataLab