sc.plot3d: plot3d: Plot

View source: R/plots.R

sc.plot3dR Documentation

plot3d: Plot

Description

Creates a 3d representation of clustering from a trio of input samples.

Usage

sc.plot3d(sco, samplesToPlot, size=700, outputFile=NULL)

Arguments

sco

an scObject object created by the sciClone() function

samplesToPlot

a character vector giving the names of the samples to plot. If only three samples were used in the clustering, just pass in sco@sampleNames

size

the size in pixels of the resulting square 3d plot

outputFile

if specified will create an animated gif that rotates the plot 360 degrees. (Requires imagemagick to be installed on the host machine).

Details

Uses rgl to create an interactive 3d plot of a trio of samples with clusters labelled. Will also create an animated gif for display purposes (requires imagemagick to be installed on the host machine and 'convert' to be in the path).

Examples

  # sc.plot3d(sc, samplesToPlot=c("sample1","sample2","sample3"), outputFile="results/clusters.3d.gif")

genome/sciclone documentation built on Oct. 15, 2023, 5:09 a.m.