getPlot | R Documentation |
Gets a plot for an FcsFile. If in RStudio or Jupyter and display
is TRUE
(default), displays the image. If destination
is provided, also saves the
image as a PNG file. In all cases, returns the PNG-encoded bytes (invisibly,
if display
is TRUE
).
getPlot(
experimentId,
fcsFileId,
plotType,
xChannel,
yChannel = "",
zChannel = "",
params = list(),
destination = NULL,
overwrite = FALSE,
display = TRUE
)
experimentId |
character ID of experiment. |
fcsFileId |
character ID of FcsFile |
plotType |
character Plot type, one of: "contour", "dot", "density", or "histogram" |
xChannel |
character X channel name |
yChannel |
character Y channel name |
zChannel |
character Z channel name |
params |
list Optional query parameters:
|
destination |
character If specified, write the image to file. |
overwrite |
logical If a destination is specified, allows destination file to be overwritten. |
display |
logical Display the image. Defaults to |
## Not run:
parameters <- list(
"width" = 400,
"height" = 400,
"axesQ" = FALSE,
"ticksQ" = FALSE,
"color" = "#ff0000",
"renderGates" = TRUE,
"smoothing" = 0.75,
)
getPlot(experimentId,
fcsFileId,
plotType = "dot",
xChannel = "FSC-A",
yChannel = "FSC-W",
params = parameters
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.