writeQuaternaryGIF {CytoSimplex} | R Documentation |
Create GIF image for dynamic rotating view of 3D quaternary simplex plot
Description
Create GIF image for dynamic rotating view of 3D quaternary simplex plot
Usage
writeQuaternaryGIF(
x,
...,
cluster = NULL,
gifPath = "quaternary.gif",
tmpDir = tempdir(),
fps = 10,
degreePerFrame = 10
)
Arguments
x |
Input object that |
... |
All other arguments needed for |
cluster |
One cluster that exists in |
gifPath |
Output GIF image file path. Default |
tmpDir |
A temprorary directory to store all PNG files for all
perspectives created. Default |
fps |
Number of frame per second, must be a factor of 100. Default
|
degreePerFrame |
Number of degree that the tetrahedron is rotated per
frame. Default |
Value
No object is returned. The tmpDir
folder will be created with
360 / degreePerFrame
PNG image files in it. A GIF image file will be
created at gifPath
.
Examples
gene <- selectTopFeatures(rnaRaw, rnaCluster, c("RE", "OS", "CH", "ORT"))
writeQuaternaryGIF(rnaRaw, clusterVar = rnaCluster, features = gene,
vertices = c("RE", "OS", "CH", "ORT"),
gifPath = paste0(tempfile(), ".gif"))