Description Usage Arguments Details Value Author(s) Examples
Global graphic options for heatmaps
1 | ht_global_opt(..., RESET = FALSE, READ.ONLY = NULL, LOCAL = FALSE)
|
... |
options, see 'details' section |
RESET |
reset all the option values |
READ.ONLY |
|
LOCAL |
switch local mode |
You can set some parameters for all heatmaps/annotations simultaneously by this global function. Pleast note you should put it before your heatmap code and reset all option values after drawing the heatmaps to get rid of affecting next heatmap plotting.
There are following parameters:
set row_names_gp
in Heatmap
.
set column_names_gp
in Heatmap
.
set row_title_gp
in Heatmap
.
set column_title_gp
in Heatmap
.
set title_gp
element in heatmap_legend_param
in Heatmap
.
set title_position
element in heatmap_legend_param
in Heatmap
.
set labels_gp
element in heatmap_legend_param
in Heatmap
.
set grid_width
element in heatmap_legend_param
in Heatmap
.
set grid_height
element in heatmap_legend_param
in Heatmap
.
set grid_border
element in heatmap_legend_param
in Heatmap
.
set title_gp
element in legend_param
in SingleAnnotation
.
set title_position
element in legend_param
in SingleAnnotation
.
set labels_gp
element in legend_param
in SingleAnnotation
.
set grid_width
element in legend_param
in SingleAnnotation
.
set grid_height
element in legend_param
in SingleAnnotation
.
set grid_border
element in legend_param
in SingleAnnotation
.
whether use hclust
to speed up clustering?
You can get or set option values by the traditional way (like options
) or by $
operator:
1 2 3 4 5 6 7 | # to get option values
ht_global_opt("heatmap_row_names_gp")
ht_global_opt$heatmap_row_names_gp
# to set option values
ht_global_opt("heatmap_row_names_gp" = gpar(fontsize = 8))
ht_global_opt$heatmap_row_names_gp = gpar(fontsize = 8)
|
Depends on the options users selected.
Zuguang Gu <z.gu@dkfz.de>
1 2 | # no example for this function
NULL
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.