Nothing
#' Filter \code{parcoords} through \code{parcoordsProxy}
#'
#' @param pc \code{parcoordsProxy}
#' @param filters \code{list} of filters to apply to the parcoords proxy. Please see
#' \href{https://github.com/deitch/searchjs}{search.js} for example queries as filters.
#'
#' @return \code{parcoords_proxy}
#' @export
#'
pcFilter <- function(pc=NULL, filters = NULL) {
if(!inherits(pc, "parcoords_proxy")) {
stop(
paste0("expecting pc argument to be parcoordsProxy but got ", class(pc)),
call. = FALSE
)
}
invokeRemote(pc, "filter", list(filters))
pc
}
#' Center \code{parcoords} horizontally based on column/variable through \code{parcoordsProxy}
#'
#' @param pc \code{parcoordsProxy}
#' @param dim \code{string} column/variable to center.
#'
#' @return \code{parcoords_proxy}
#' @export
#'
pcCenter <- function(pc=NULL, dim = NULL) {
if(!inherits(pc, "parcoords_proxy")) {
stop(
paste0("expecting pc argument to be parcoordsProxy but got ", class(pc)),
call. = FALSE
)
}
invokeRemote(pc, "center", list(dim = dim))
pc
}
#' Hide \code{parcoords} columns through \code{parcoordsProxy}
#'
#' @param pc \code{parcoordsProxy}
#' @param dim \code{string} column(s) to hide.
#'
#' @return \code{parcoords_proxy}
#' @export
#'
pcHide <- function(pc=NULL, dim = NULL) {
if(!inherits(pc, "parcoords_proxy")) {
stop(
paste0("expecting pc argument to be parcoordsProxy but got ", class(pc)),
call. = FALSE
)
}
invokeRemote(pc, "hide", list(dim))
pc
}
#' Unhide \code{parcoords} columns through \code{parcoordsProxy}
#'
#' @param pc \code{parcoordsProxy}
#' @param dim \code{string} column(s) to hide.
#'
#' @return \code{parcoords_proxy}
#' @export
#'
pcUnhide <- function(pc=NULL, dim = NULL) {
if(!inherits(pc, "parcoords_proxy")) {
stop(
paste0("expecting pc argument to be parcoordsProxy but got ", class(pc)),
call. = FALSE
)
}
invokeRemote(pc, "unhide", list(dim = dim))
pc
}
#' Download image of \code{parcoords} through \code{parcoordsProxy}
#'
#' @param pc \code{parcoordsProxy}
#'
#' @return \code{parcoords_proxy}
#' @export
#'
pcSnapshot <- function(pc=NULL) {
if(!inherits(pc, "parcoords_proxy")) {
stop(
paste0("expecting pc argument to be parcoordsProxy but got ", class(pc)),
call. = FALSE
)
}
invokeRemote(pc, "snapshot", list())
pc
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.