Description Usage Arguments Details Value Examples
Generate a heat map of column types from a data.frame
.
1 2 3 4 5 6 7 | table_heat(
x,
flip = FALSE,
palette = "Set3",
print = interactive(),
sep = "\n"
)
|
x |
A |
flip |
logical. If |
palette |
A palette to chose from. See
|
print |
logical. If |
sep |
A separator to use between column types. Column types are
determined via |
By default coumn names retain their order. Column types are ordered
alphabetically in the legend, with NA
appearing last.
Returns a ggplot2 object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | table_heat(mtcars) #boring
table_heat(CO2)
table_heat(iris)
table_heat(state_populations)
dat <- r_data_frame(100,
lorem_ipsum,
birth,
animal,
age,
grade, grade,
death,
dummy,
grade_letter
)
table_heat(dat)
table_heat(dat, flip=TRUE)
table_heat(r_data_theme(), flip=TRUE)
## NA values
table_heat(r_na(dat, NULL))
## Colors
table_heat(r_na(dat, NULL), palette = NULL)
table_heat(r_na(dat, NULL), palette = "Set1")
table_heat(r_na(dat, NULL), palette = "Set2")
table_heat(r_na(dat, NULL), palette = "Set1")
table_heat(r_na(dat, NULL), palette = "Dark2")
table_heat(r_na(dat, NULL), palette = "Spectral")
table_heat(r_na(dat, NULL), palette = "Reds")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.