Skip to contents

Add data type to HIDECAN plot

Usage

.add_data_type(
  p,
  toplot,
  i,
  paes,
  add_new_legend,
  point_size,
  label_size,
  label_padding
)

Arguments

p

Current ggplot.

toplot

Tibble of data to plot.

i

Character, data type to add in the plot.

paes

Named list, aesthetics to use for this data type (see hidecan_aes() for information about the required values).

add_new_legend

Logical, whether the current data type requires a new legend for fill.

point_size

Numeric, size of the points in the plot.

label_size

Numeric, size of the gene labels in the plot.

label_padding

Numeric, amount of padding around gene labels in the plot, as unit or number.

Value

Ggplot p to which the new data type has been added.