ezXYScatter.2 | R Documentation |
Plot the interactive XYScatter plot or XYScatter plot with labelled genes.
ezXYScatter.2(xVec, yVec, absentColor = "gray", shrink = FALSE,
xlim = range(xVec, yVec, na.rm = TRUE),
ylim = xlim, isPresent = NULL, names = NULL, types = NULL,
colors = rainbow(ncol(types)), main = NULL,
xlab = NULL, ylab = NULL, labelGenes = NULL,
mode = c("plotly", "ggplot2"))
xVec |
|
yVec |
|
absentColor |
|
shrink |
|
xlim |
|
ylim |
|
isPresent |
|
names |
|
types |
|
colors |
colors for the types. |
main |
|
xlab , ylab |
|
labelGenes |
|
mode |
generate interactive plot with ‘plotly’ or static plot with ‘ggplot2’. To label the genes, only ‘ggplot2’ is supported. |
A plotly
or ggplot2
object.
Ge Tan
ezVolcano
sampleValues <- c(0.28, 0.87, 31.70, 361.18)
refValues <- c(0.27, 0.60, 28.81, 364.13)
isPresent <- c(TRUE, TRUE, FALSE, TRUE)
types <- data.frame(Significants=c(TRUE, FALSE, FALSE, TRUE),
ZincFingers=c(TRUE, FALSE, FALSE, FALSE))
names <- c("SALL1", "PAX6", "IRX3", "MEIS1")
xlab <- "A"
ylab <- "B"
main="Comparison of average expression"
p_plotly <- ezXYScatter.2(xVec=refValues, yVec=sampleValues,
isPresent=isPresent,
types=types, names=names,
xlab=xlab, ylab=ylab,
main="Comparison of average expression",
labelGenes=c("SALL1", "IRX3"),
mode="plotly")
p_ggplot2 <- ezXYScatter.2(xVec=refValues, yVec=sampleValues,
isPresent=isPresent,
types=types, names=names,
xlab=xlab, ylab=ylab,
main="Comparison of average expression",
labelGenes=c("SALL1", "IRX3"),
mode="ggplot2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.