volcano_plotly | R Documentation |
volcano plotly
volcano_plotly(
.data,
effect = "fc",
significance = "BFDR",
contrast = "condition",
proteinID = "Prey",
color = "modelName",
palette = NULL,
xintercept = c(-2, 2),
yintercept = 0.1,
minsignificance = 1e-04,
title_size = 25,
group = "BB"
)
.data |
data frame |
effect |
effect size x-axis |
significance |
significance |
proteinID |
column with protein ids |
xintercept |
vertical abline at x |
yintercept |
horizontal abline at y |
data <- data.frame(fc = c(-1,0,1,2,8), BFDR = c(0.01,1, 0.01, 0.005,0),
condition = rep("A",5), Prey = LETTERS[1:5], modelName = c("A","A","B","A","A"))
dataB <- data.frame(fc = c(-1,0,1,2,8), BFDR = c(0.01,1, 0.01, 0.005,0),
condition = rep("B",5), Prey = LETTERS[1:5],modelName = c("A","A","B","B","B"))
data <- dplyr::bind_rows(data, dataB)
bc <- volcano_plotly(data, xintercept = 1, yintercept= 0.01, palette = c(A = "black" , B = "red"))
bc |> plotly::subplot()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.