Description Usage Arguments Value Author(s) See Also Examples
summary for a data frame in a graphical table
1 2 3 4 |
.Object |
a data frame |
outputType |
a character vector of length one specifying the desired output format:
|
filename |
the filename of the output (minus '.tex' or '.html' |
graphNames |
the main part of the single graphic files that are produced (minus '-someIndex.extension' |
hist |
TRUE/FALSE for a histogramm |
boxplot |
TRUE/FALSE for a boxplot |
min |
TRUE/FALSE for the minimum |
quantile |
TRUE/FALSE for 1st and 3rd Quartile |
median |
TRUE/FALSE for the median |
mean |
TRUE/FALSE for the mean |
max |
TRUE/FALSE for the maximum |
changeOrder |
Indices for reordering the columns of the table |
addFun |
named list of additional functions e.g. var |
digits |
number of digits used for rounding |
scaleHistByCol |
TRUE/FALSE if the histograms of all variables should be on the same x-axis scale |
scaleBoxByCol |
TRUE/FALSE if the boxplots of all variables should be on the same x-axis scale |
object of class 'sparkTable' for further customizing the output (with setParameter)
Alexander Kowarik, Statistics Austria
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
data1 <- data.frame(x=rnorm(100),y=rlnorm(100),
z=rbeta(100,1,1))
#default summary table
summaryST(data1,filename="st1a",graphNames="out1a")
#changing the order of the columns
summaryST(data1,filename="st1b",changeOrder=c(6,7,2,3,1,4,5,8),graphNames="out1b")
#adding a custom column
summaryST(data1,filename="st1c",addFun=list(var=function(x)round(var(x,na.rm=TRUE),2)),
graphNames="out1c")
data2 <- data.frame(x1=rnorm(100),x2=rnorm(100)+1,x3=rnorm(100)+5)
summaryST(data2,filename="st1d",graphNames="out1d",scaleHistByCol=TRUE,scaleBoxByCol=TRUE)
# the same results in a shiny app:
showSparkTable(data2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.