Description Usage Arguments Author(s) See Also Examples
Creates an html file with links and plots from a table.
1 | write.html(x, links, tiny.pic, tiny.pic.size = 100, title = "", file, digits = 3)
|
x |
Object of class |
links |
Object of class |
tiny.pic |
Object of class |
tiny.pic.size |
size of the pictures if any. |
title |
Title that will be shown on top of the html file. |
file |
path and name of the file that will be created. |
digits |
number of digits that will be shown in numeric columns of x. |
Evarist Planet
write.csv, write.table, htmlpage
1 2 3 4 5 6 7 8 9 10 11 12 13 | ##
##Code has been commented to avoid the creation of files
##
#(x <- data.frame(gene.symbol=c('AARS','ABCF1','ABLIM1'),value=c(2.054,30.024,5.0221),plot=rep('Open',3)))
#tiny.pic <- links <- vector('list',length=ncol(x))
#links[[1]] <- paste('http://www.genecards.org/index.php?path=/Search/keyword/',x[,1])
#for (i in 1:nrow(x)) {
# png(paste('~/Desktop/',x[i,1],'.png',sep=''))
# plot(1:3,log(1:3))
# dev.off()
#}
#tiny.pic[[3]] <- links[[3]] <- paste(x[,1],'.png',sep='')
#write.html(x,links=links,tiny.pic=tiny.pic,file='~/Desktop/x.html',title='My html test')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.