Skip to contents

Generates a list of the default aesthetics used for HIDECAN plots.

Usage

hidecan_aes(colour_genes_by_score = TRUE)

Arguments

colour_genes_by_score

Logical, whether to colour the genes by score (TRUE) or by log2(fold-change) (FALSE). Default value is TRUE.

Value

A named list, with one element per type of data (e.g. GWAS, DE, etc). Each element is itself a list with the following elements:

  • y_label: prefix added to the name of a track on the y-axis of the plot.

  • show_as_rect: logical, whether the interval should be represented by a point showing its mid-position (FALSE), or by a rectangle spanning its length (TRUE).

  • line_colour: colour of the vertical line used to show the position of elements of this type.

  • point_shape: shape used for the points of this type. Non-applicable if show_as_rect is TRUE.

  • show_name: whether a label with name value should be added to points of this type.

  • fill_scale: fill scale to use for the points of this type.

  • rect_width: if show_as_rect is TRUE, relative half-width of the rectangles (in terms of space between two tracks).