ffdf datasets from the
ff package.tableplot(dat, select, subset = NULL, sortCol = 1,
decreasing = TRUE, nBins = 100, from = 0, to = 100,
nCols = ncol(dat), scales = "auto",
pals = list("Set1", "Set2", "Set3", "Set4"),
colorNA = "#FF1414", numPals = "Blues",
bias_brokenX = 0.8, IQR_bias = 5, select_string = NULL,
subset_string = NULL, colNames = NULL, filter = NULL,
plot = TRUE, ...)data.frame,
data.table, or an
ffdf object (required).dat that are visualized in the tablelplot Also
column indices are supported. By default, all columns are
visualized. Use select_string for character
strings instead of expressions.dat (as in subset). It is
also possible to provide the name of a categorical
variable: then, a tableplot for each category is
geneTRUE) of increasingly
(FALSE). decreasing can be either a single
value that applies to all sorted columns, or a vector of
the same length as sdatNames, multiple tableplots are
generated, where each of them contains the sorted
column(s).colNames, options: "lin",
"log", and "auto" for automatic detection. If necessary,
scales is recycled.tablePalettes, optionally with the starting
color between brackets.bias_brokenX
times the maximum value, then X axis is broken. To turn
off broken x-axes, set bias_brokenX=scales is set to
"auto". The argument IQR_bias is multiplied by the
interquartile range as a test.select argument (particularly useful for
programming purposes)subset argument (particularly useful for
programming purposes)select_string)
insteadsubset_string)
insteadplot.tabplottabplot-object (silent output). If multiple
tableplots are generated (which can be done by either
setting subset to a categorical column name, or by
restricting the number of columns with nCols),
then a list of tabplot-objects is silently
returned.# load diamonds dataset from ggplot2
require(ggplot2)
data(diamonds)
# default tableplot
tableplot(diamonds)
# customized tableplot
tableplot(diamonds, select=c(carat, cut, color, clarity, price), sortCol=price, from=0, to=5)
# apply filter
tableplot(diamonds, subset=price < 5000 & cut=='Premium')
tableplot(diamonds, subset=cut)Run the code above in your browser using DataLab