scatter plotly
Usage
scatter_plotly(
.data,
dx = "diff.protein",
dy = "diff.site",
contrast = "condition",
proteinID = "protein_Id",
color = "modelName",
palette = NULL,
title_size = 25,
group = "BB"
)Arguments
- .data
data frame
- dx
column name for the x-axis difference
- dy
column name for the y-axis difference
- contrast
column with contrast labels
- proteinID
column with protein ids
- color
column used for colouring points
- palette
named colour vector for the colour aesthetic
- title_size
font size of the subplot title annotation
- group
crosstalk group name for linked brushing
Examples
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()