distance_heatmap: Heat map for given distances for grid of ploidies and...

Description Usage Arguments Value Examples

View source: R/plots.R

Description

Heat map of the given distances for a grid of ploidy and cellularity values.

Usage

1
2
3
4
5
6
7
distance_heatmap(
  distances,
  low_distance_colour = "red",
  high_distance_colour = "blue",
  xlabel = "cellularity",
  ylabel = "ploidy"
)

Arguments

distances

a data frame containing ploidy, cellularity and distance columns.

low_distance_colour

the colour for low distances.

high_distance_colour

the colour for high distances.

xlabel, ylabel

x- and y-axis labels.

Value

a ggplot object

Examples

1
2
3
4
5
6
7
8
data(copy_number)
copy_number <- copy_number[copy_number$sample == "X17222", ]
segments <- copy_number_segments(copy_number)

distances <- absolute_copy_number_distance_grid(segments$copy_number,
                                                segments$weight,
                                                distance_function = "MAD")
distance_heatmap(distances)

crukci-bioinformatics/rascal documentation built on Dec. 19, 2021, 6:21 p.m.