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