Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

sciClone (version 1.1.0)

sc.plot3d: 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

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

Run the code above in your browser using DataLab