HTMLapplets.data.frame {HTMLapplets} | R Documentation |
HTMLapplets.data.frame
Description
Displays a data frame in a dynamic grid within an R2HTML
document. Undesired effects might occur if several plots are put into
a single HTML document.
Usage
HTMLapplets.data.frame(x,
file = .HTML.file, append = TRUE,
id = "csvtab", data.link = TRUE, center=TRUE,
save.csv = TRUE,
width = 500, height = 400,
codebase = ".",
archive = "tablesortcsv.jar",
copy.jar = TRUE, overwrite.jar = TRUE,
...)
Arguments
x |
the input data frame. |
file |
HTML target output file. |
append |
if TRUE output will be appended to 'file' otherwise it will overwrite the content of the file. |
id |
grid identifier. |
data.link |
add a link to the CSV file in the HTML file. |
center |
center the output in the HTML document. |
save.csv |
if TRUE, the CSV file is created. |
width |
applet width. |
height |
applet height. |
codebase |
codebase parameter for the applet tag. If the jar
files are in a specific directory (e.g. HTTPDIR/runtime/jar/),
set the codebase parameter accordingly (e.g. "/runtime/jar") and set
the parameter copy.jar to FALSE. |
archive |
name of the jar file. |
copy.jar |
if TRUE (default) the jar file is copied to the HTML target directory. |
overwrite.jar |
if TRUE (default) replace the jar file if it
exists. |
... |
|
See Also
data.frame
,
HTML
,
Examples
data(ChickWeight)
l <- split(ChickWeight[,c("Time","weight")], ChickWeight$Chick)
for(i in 1:length(l)) names(l[[i]]) <- c("Time",paste("Chick",i,sep=""))
chicks <- data.frame(Time=sort(unique(ChickWeight$Time)))
for(i in 1:length(l))
chicks <- merge(chicks,l[[i]], all=TRUE)
mean <- apply(chicks,1,mean, na.rm=TRUE)
sd <- apply(chicks,1,sd, na.rm=TRUE)
cat("CREATING \"./chicksGrid.html\"\n")
HTMLInitFile("./","chicksGrid")
HTML.title("HTMLapplets")
# grid
HTMLapplets.data.frame(chicks[,1:10],height=100)
HTMLEndFile()
[Package
HTMLapplets version 0.1-2.1
Index]