
Last chance! 50% off unlimited learning
Sale ends in
plotDataFrame(df, overlap = 0.25, nlevel = 30, show_row_names = TRUE,
show_column_names = TRUE, group = NULL, group_names = names(group),
main_heatmap = NULL, km = 1, split = NULL, cluster_rows = TRUE,
cluster_columns = TRUE, row_order = NULL, ...)
cluster_rows
HeatmapList
object.plotDataFrame
function provides a simple and quick way to
visualize information that are stored in a data frame.There are only a few settings in this function, so the heamtap generated by this functioin
may look ugly (in most of the time). However, users can customize the style of the heatmaps by manually
constructing a HeatmapList
object.
df = data.frame(matrix(rnorm(40), nrow = 10, dimnames = list(letters[1:10], letters[1:4])),
large = runif(10)*100,
t1 = sample(letters[1:3], 10, replace = TRUE),
matrix(runif(60), nrow = 10, dimnames = list(LETTERS[1:10], LETTERS[1:6])),
t2 = sample(LETTERS[1:3], 10, replace = TRUE))
plotDataFrame(df)
plotDataFrame(df, group = list(1:4, 5, 6, 7:12, 13), group_names = c("mat1", "large", "t1", "mat2", "t2"),
main_heatmap = 4, km = 2, column_title = "column title", row_title = "row title")
Run the code above in your browser using DataLab