R/linked_views.R

Defines functions linked_views

Documented in linked_views

#' Interactive Linked_Viewss
#'
#' @param polys A geojson object containing the cell coordinates.
#' @param dimred A dataframe with columns V1 and V2 containing the U-Map layout
#'   of the cells.
#' @param width The width of the output visualization.
#' @param height The width of the output visualization.
#' @param elementId The ID of the new htmlwidgets element within which to put
#'   the vis.
#' @import htmlwidgets
#' @export
linked_views <- function(polys, dimred, width = 900, height = 450, elementId = NULL) {
  htmlwidgets::createWidget(
    name = "linked_views",
    list(polys = polys, dimred = dimred),
    width = width,
    height = height,
    elementId  = elementId,
    package = "BIRSBIO2020.scProteomics.embeddings"
  )
}
krisrs1128/BIRSBIO2020.scProteomics.embeddings documentation built on July 29, 2020, 7:36 a.m.