
Last chance! 50% off unlimited learning
Sale ends in
EnrichedHeatmap(mat, score_fun = enriched_score, row_order = NULL, pos_line = TRUE,
pos_line_gp = gpar(lty = 2), axis_name = NULL, axis_name_rot = NULL,
axis_name_gp = gpar(fontsize = 10), border = TRUE, cluster_rows = FALSE,
show_row_dend = FALSE, ...)
normalizeToMatrix
mat
. This function can be self-defined, take a look at enriched_score
to find out how to design it. Note if row clustering is turned on, this argument is ignored.score_fun
is ignored.target
axis_name
is a vector of length three which corresponds to upstream, target itself and downstream. If the targets are regions with width larger than 1, axis_name
should be a vector of length four which corresponds to upstream, start of targets, end of targets and downstream.Heatmap
EnrichedHeatmap-class
object which is inherited from Heatmap-class
.EnrichedHeatmap-class
is inherited from Heatmap-class
. Following parameters are
set with pre-defined values:[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
With above pre-defined values, no graphics will be drawn below the heatmap, then the space
below the heatmap can be used to add a new graph which contains the axis. A (or two) line which corresponds to
the position of target
will be added to the heatmap body as well.
Same as the Heatmap-class
, users can make more controls on the heatmap such as
apply clustering on rows, or split rows by data frame or k-means clustering. Users can also
add more than one heatmaps by +
operator.
For a detailed demonstration, please go to the vignette.
load(paste0(system.file("extdata", "chr21_test_data.RData",
package = "EnrichedHeatmap")))
mat3 = normalizeToMatrix(meth, cgi, value_column = "meth", mean_mode = "absolute",
extend = 5000, w = 50, empty_value = 0.5)
EnrichedHeatmap(mat3, name = "methylation", column_title = "methylation near CGI")
EnrichedHeatmap(mat3, name = "meth1") + EnrichedHeatmap(mat3, name = "meth2")
# for more examples, please go to the vignette
Run the code above in your browser using DataLab