The Default Parameters for Annotation Axis

default_axis_param(which)

Arguments

which

Whether it is for column annotation or row annotation?

Details

There are following parameters for the annotation axis:

at

The breaks of axis. By default it is automatically inferred.

labels

The corresponding axis labels.

labels_rot

The rotation of the axis labels.

gp

Graphc parameters of axis labels. The value should be a unit object.

side

If it is for column annotation, the value should only be one of left and right. If it is for row annotation, the value should only be one of top and bottom.

facing

Whether the axis faces to the outside of the annotation region or inside. Sometimes when appending more than one heatmaps, the axes of column annotations of one heatmap might overlap to the neighbouring heatmap, setting facing to inside may invoild it.

direction

The direction of the axis. Value should be "normal" or "reverse".

All the parameters are passed to annotation_axis_grob to construct an axis grob.

Examples

default_axis_param("column")
#> $at #> NULL #> #> $labels #> NULL #> #> $labels_rot #> [1] 0 #> #> $gp #> $fontsize #> [1] 8 #> #> #> $side #> [1] "left" #> #> $facing #> [1] "outside" #> #> $direction #> [1] "normal" #>
default_axis_param("row")
#> $at #> NULL #> #> $labels #> NULL #> #> $labels_rot #> [1] 90 #> #> $gp #> $fontsize #> [1] 8 #> #> #> $side #> [1] "bottom" #> #> $facing #> [1] "outside" #> #> $direction #> [1] "normal" #>