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,
filename = NULL,
fps = 10,
degreePerFrame = 10,
width = 5,
height = 5,
res = 100
)
Arguments
x |
Input object that |
... |
All other arguments needed for |
cluster |
One cluster that exists in |
filename |
Output GIF image file path. 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 |
width , height , res |
|
Value
A object of class magick-image
that can be shown in the Viewer
panel in RStudio or equivalent display device. If filename
is
specified, the GIF image will be written to the file path.
Examples
gene <- selectTopFeatures(rnaRaw, rnaCluster, c("RE", "OS", "CH", "ORT"))
writeQuaternaryGIF(rnaRaw, clusterVar = rnaCluster, features = gene,
vertices = c("RE", "OS", "CH", "ORT"),
gifPath = tempfile(fileext = ".gif"))