chart_table {mschart} | R Documentation |
x table settings
Description
Define settings for an x table.
Usage
chart_table(x, horizontal, vertical, outline, show_keys)
Arguments
x |
an |
horizontal |
write horizontal lines in the table |
vertical |
write vertical lines in the table |
outline |
write an outline in the table |
show_keys |
showkeys in the table |
Examples
data <- data.frame(
supp = factor(rep(c("OJ", "VC"), each = 3),
levels = c("OJ", "VC")),
dose = factor(rep(c("low", "medium", "high"), 2),
levels = c("low", "medium", "high")),
length = c(13.23, 22.7, 24.06, 7.98, 16.77, 26.14),
label = LETTERS[1:6],
stringsAsFactors = FALSE
)
# example chart 03 -------
chart <- ms_linechart(
data = data, x = "dose", y = "length",
group = "supp", labels = "label"
)
chart <- chart_settings(
x = chart, table = TRUE
)
chart <- chart_table(chart,
horizontal = TRUE, vertical = FALSE,
outline = TRUE, show_keys = FALSE
)
[Package mschart version 0.4.0 Index]