#' Plot results from missMethyl analysis of significant array hits
#'
#' @param x
#'
#' @return A table of missMrthyl results
#' @export
#'
#' @examples mm_plot_0.25(sig_0.25)
mm_plot_0.25 <- function(x) {
if (class(x) == "data.frame") {
x %>%
DT::datatable(
filter = 'top',
rownames = FALSE,
extensions = 'FixedColumns',
options = list(
pageLength = 10,
dom = 'tpf',
scrollX = TRUE,
fixedColumns = TRUE
)
) %>%
DT::formatStyle(
columns = c("ONTOLOGY", "N", "DE", "P.DE", "FDR"),
`text-align` = 'center'
) %>%
DT::formatSignif(columns = c("P.DE", "FDR"), digits = 3)
} else {
print("Insufficient cgs FDR<0.25 to plot missMethyl table")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.