Description Usage Arguments Details See Also Examples
Create a new tisch object tisch initializes a new tisch object. Designate rows and columns via its formula interface.
1 2 |
data |
a data frame |
formula |
casting formula, see dcast for specifics |
cols |
which are the column variables? |
rows |
which are the row variables? |
sep |
if column are composites, what is the separator string? |
reorder |
logical, allow the casting function to reorder the data frame? |
... |
arguments passed to the casting function |
There exists two ways of specifying the row and column variables in tisch.
Long data frames
Wide data frames
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
data("browsershares")
tt <- tisch(browsershares, rows = c("Year", "Month"), sep = " >> ") +
theme(
row_style = ragged(indent = 0.2),
column_justification = "central",
text_size = "scriptsize",
replace_NA = "-"
) +
caption("Browser market share in 2011-2013") +
footnote("Note: Information taken from StatCounter.")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.