knitr::opts_chunk$set(fig.cap = NULL, fig.path = params$output_figure) library(knitr) library(data.table) library(ggplot2) library(ggrepel) library(GGally) library(umap) library(FactoMineR) library(factoextra) library(corrplot) library(viridis) library(ggpubr) library(Hmisc) library(plotly) library(stringr) library(bit64)
#assert that all the stuff we need is there. stopifnot(exists("expdes")) stopifnot(exists("prot")) stopifnot(exists("prot_int"))
expdes <- expdes[,c("condition", "experiment", "reporter_channel", "replicate")]
tmp <- prot_int tmp$Imputed <- as.character(prot_int$Imputed) p <- ggplot(tmp, aes(x=log2NIntNorm, fill=Imputed, colour = Imputed)) + geom_density(alpha=0.4) + theme_minimal() + ggtitle("Proteins - Reporter intensity (Imputed vs Not)") ggplotly(p) %>% config(displayModeBar = T, modeBarButtons = list(list('toImage')), displaylogo = F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.