... |
... |
@@ -909,25 +909,25 @@ setMethod(f = "make_layout",
|
909 |
909 |
object@heatmap_legend_param$side = heatmap_legend_side
|
910 |
910 |
if(show_heatmap_legend) {
|
911 |
911 |
if(heatmap_legend_side == "top") {
|
912 |
|
- object@heatmap_legend_param$padding = unit(c(2, 0, 0, 0), "mm")
|
|
912 |
+ object@heatmap_legend_param$padding = unit.c(ht_opt$HEATMAP_LEGEND_PADDING, unit(c(0, 0, 0), "mm")) #unit(c(2, 0, 0, 0), "mm")
|
913 |
913 |
size = heatmap_legend_size(object, legend_list = heatmap_legend_list, max_width = calc_legends_max_width(object))
|
914 |
914 |
object@heatmap_legend_param$size = size
|
915 |
915 |
object@layout$layout_heatmap_legend_top_height = size[2]
|
916 |
916 |
object@layout$layout_index = rbind(object@layout$layout_index, heatmap_legend_top = heatmap_list_layout_index("heatmap_legend_top"))
|
917 |
917 |
} else if(heatmap_legend_side == "bottom") {
|
918 |
|
- object@heatmap_legend_param$padding = unit(c(0, 0, 2, 0), "mm")
|
|
918 |
+ object@heatmap_legend_param$padding = unit.c(unit(c(0, 0), "mm"), ht_opt$HEATMAP_LEGEND_PADDING, unit(0, "mm")) # unit(c(0, 0, 2, 0), "mm")
|
919 |
919 |
size = heatmap_legend_size(object, legend_list = heatmap_legend_list, max_width = calc_legends_max_width(object))
|
920 |
920 |
object@heatmap_legend_param$size = size
|
921 |
921 |
object@layout$layout_heatmap_legend_bottom_height = size[2]
|
922 |
922 |
object@layout$layout_index = rbind(object@layout$layout_index, heatmap_legend_bottom = heatmap_list_layout_index("heatmap_legend_bottom"))
|
923 |
923 |
} else if(heatmap_legend_side == "left") {
|
924 |
|
- object@heatmap_legend_param$padding = unit(c(0, 0, 0, 2), "mm")
|
|
924 |
+ object@heatmap_legend_param$padding = unit.c(unit(c(0, 0, 0), "mm"), ht_opt$HEATMAP_LEGEND_PADDING) # unit(c(0, 0, 0, 2), "mm")
|
925 |
925 |
size = heatmap_legend_size(object, legend_list = heatmap_legend_list, max_height = calc_legends_max_height(object))
|
926 |
926 |
object@heatmap_legend_param$size = size
|
927 |
927 |
object@layout$layout_heatmap_legend_left_width = size[1]
|
928 |
928 |
object@layout$layout_index = rbind(object@layout$layout_index, heatmap_legend_left = heatmap_list_layout_index("heatmap_legend_left"))
|
929 |
929 |
} else if(heatmap_legend_side == "right") {
|
930 |
|
- object@heatmap_legend_param$padding = unit(c(0, 2, 0, 0), "mm")
|
|
930 |
+ object@heatmap_legend_param$padding = unit.c(unit(0, "mm"), ht_opt$HEATMAP_LEGEND_PADDING, unit(c(0, 0), "mm")) # unit(c(0, 2, 0, 0), "mm")
|
931 |
931 |
size = heatmap_legend_size(object, legend_list = heatmap_legend_list, max_height = calc_legends_max_height(object))
|
932 |
932 |
object@heatmap_legend_param$size = size
|
933 |
933 |
object@layout$layout_heatmap_legend_right_width = size[1]
|
... |
... |
@@ -980,25 +980,25 @@ setMethod(f = "make_layout",
|
980 |
980 |
object@annotation_legend_param$side = annotation_legend_side
|
981 |
981 |
if(show_annotation_legend) {
|
982 |
982 |
if(annotation_legend_side == "top") {
|
983 |
|
- object@annotation_legend_param$padding = unit(c(2, 0, 0, 0), "mm")
|
|
983 |
+ object@annotation_legend_param$padding = unit.c(ht_opt$ANNOTATION_LEGEND_PADDING, unit(c(0, 0, 0), "mm")) # unit(c(2, 0, 0, 0), "mm")
|
984 |
984 |
size = annotation_legend_size(object, legend_list = annotation_legend_list, max_width = calc_legends_max_width(object))
|
985 |
985 |
object@annotation_legend_param$size = size
|
986 |
986 |
object@layout$layout_annotation_legend_top_height = size[2]
|
987 |
987 |
object@layout$layout_index = rbind(object@layout$layout_index, annotation_legend_top = heatmap_list_layout_index("annotation_legend_top"))
|
988 |
988 |
} else if(annotation_legend_side == "bottom") {
|
989 |
|
- object@annotation_legend_param$padding = unit(c(0, 0, 2, 0), "mm")
|
|
989 |
+ object@annotation_legend_param$padding = unit.c(unit(c(0, 0), "mm"), ht_opt$ANNOTATION_LEGEND_PADDING, unit(0, "mm")) # unit(c(0, 0, 2, 0), "mm")
|
990 |
990 |
size = annotation_legend_size(object, legend_list = annotation_legend_list, max_width = calc_legends_max_width(object))
|
991 |
991 |
object@annotation_legend_param$size = size
|
992 |
992 |
object@layout$layout_annotation_legend_bottom_height = size[2]
|
993 |
993 |
object@layout$layout_index = rbind(object@layout$layout_index, annotation_legend_bottom = heatmap_list_layout_index("annotation_legend_bottom"))
|
994 |
994 |
} else if(annotation_legend_side == "left") {
|
995 |
|
- object@annotation_legend_param$padding = unit(c(0, 0, 0, 2), "mm")
|
|
995 |
+ object@annotation_legend_param$padding = unit.c(unit(c(0, 0, 0), "mm"), ht_opt$ANNOTATION_LEGEND_PADDING) # unit(c(0, 0, 0, 2), "mm")
|
996 |
996 |
size = annotation_legend_size(object, legend_list = annotation_legend_list, max_height = calc_legends_max_height(object))
|
997 |
997 |
object@annotation_legend_param$size = size
|
998 |
998 |
object@layout$layout_annotation_legend_left_width = size[1]
|
999 |
999 |
object@layout$layout_index = rbind(object@layout$layout_index, annotation_legend_left = heatmap_list_layout_index("annotation_legend_left"))
|
1000 |
1000 |
} else if(annotation_legend_side == "right") {
|
1001 |
|
- object@annotation_legend_param$padding = unit(c(0, 2, 0, 0), "mm")
|
|
1001 |
+ object@annotation_legend_param$padding = unit.c(unit(0, "mm"), ht_opt$ANNOTATION_LEGEND_PADDING, unit(c(0, 0), "mm")) # unit(c(0, 2, 0, 0), "mm")
|
1002 |
1002 |
size = annotation_legend_size(object, legend_list = annotation_legend_list, max_height = calc_legends_max_height(object))
|
1003 |
1003 |
object@annotation_legend_param$size = size
|
1004 |
1004 |
object@layout$layout_annotation_legend_right_width = size[1]
|