Description Usage Arguments Author(s) See Also Examples
View source: R/colored.table.R
Create a color-coded table in latex
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
data |
the dataset in "long" format, where the conditions are on columns. |
file |
the location where the file should be exported. |
dep.var |
A string naming the dependent variable |
row.factors |
A vector of one or two elements, each of which is a string indicating the name of the row factor(s) |
col.factors |
A vector of one or two elements, each of which is a string indicating the name of the col factor(s) |
breaks |
The number of breaks in color. Defaults to 4. |
round |
How many digits should the matrix be rounded to? Defaults to 2. |
rng |
The range of values used for coloring the plot. |
FUN |
The function used to summarize the table (defaults to mean) |
row.prefix |
Any values that precede the rows (e.g., "r^2 = "). |
col.prefix |
Any values that precede the columns. |
custom.breaks |
The points at which the colored table changes colors. If left to NULL, the function will automatically choose them. |
return.table |
Should the function return the table as output? |
... |
Other arguments passed to Hmisc |
Dustin Fife
1 | ## do this later
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.