writeQuaternaryGIF | R Documentation |
Create GIF image for dynamic rotating view of 3D quaternary simplex plot
writeQuaternaryGIF(
x,
...,
cluster = NULL,
filename = NULL,
fps = 10,
degreePerFrame = 10,
width = 5,
height = 5,
res = 100
)
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 |
|
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.
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.