scatterPlot | R Documentation |
Generate a scatter plot of interactions.
scatterPlot( data, idents, ident1, ident2, ligands, receptors, add.lines = FALSE, add.text = TRUE, background.col = "grey", ligand.col = "red", receptor.col = "blue", ligand.pch = 16, receptor.pch = 16, point.cex = 1, label.offset = 1, ligand.pos = 2, receptor.pos = 4, legend.pos = "topright", ... )
data |
Data matrix to plot |
idents |
Cell type identity. |
ident1 |
Cell identity 1 to plot. |
ident2 |
Cell identity 2 to plot. |
ligands |
Ligand name. |
receptors |
Receptor name. |
add.lines |
Logic, draw lines between ligand-receptor pairs. Default is FALSE. |
add.text |
Logic, add text for ligands and receptors. Default is TRUE. |
background.col |
Background points color. Default is gray. |
ligand.col |
Ligand points color. Default is red. |
receptor.col |
Receptor points color. Default is blue. |
ligand.pch |
Point shape for ligands. Default is 16 (solid circle). |
receptor.pch |
Point shape for receptor. Default is 16 (solid circle). |
point.cex |
Point size. Default is 1. |
label.offset |
Text label offset. Default is 1. |
ligand.pos |
Ligand text position. Default is 2 (left). See |
receptor.pos |
Receptor text position. Default is 4 (right). See |
legend.pos |
Legend position. Default is 'topright'. |
... |
Additioanl arguments passed to |
Return a scatter plot of interactions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.