plotnD: Create a 2D plot for multi-dimensional clustering

View source: R/PlotDensities.R

plotnDR Documentation

Create a 2D plot for multi-dimensional clustering

Description

Create a 2D plot for multi-dimensional clustering

Usage

plotnD(xvals, yvals, zvals, subclonal.fraction_x, subclonal.fraction_y,
  pngFile, samplename_x, samplename_y, max.plotted.value = NA,
  cluster.locations = NULL, plot_mutations = F)

Arguments

xvals

Density coordinates of the x-axis

yvals

Density coordinates of the y-axis

zvals

The density itself

subclonal.fraction_x

Fraction of cells estimate for each mutation in sample on x-axis

subclonal.fraction_y

Fraction of cells estimate for each mutation in sample on y-axis

pngFile

Filename to which the figure should be pushed

samplename_x

Samplename to assign as x-axis label

samplename_y

Samplename to assign as y-axis label

max.plotted.value

The maximum value to plot on both x- and y-axis (Default: NA)

cluster.locations

Locations of clusters to be overlayed (Default: NULL)

plot.mutations

Boolean, supply TRUE when mutations should be overlayed on top of the density (Default: FALSE)

Author(s)

dw9


Wedge-Oxford/dpclust documentation built on July 6, 2024, 2:02 p.m.