From de849d85ae456f20e33360376d7d89271ebca8c0 Mon Sep 17 00:00:00 2001 From: Nicholas Tierney Date: Sun, 8 Jan 2017 23:25:53 +1000 Subject: [PATCH] remove vis_dat_ly, put into issue #36 --- R/vis_dat_ly.R | 35 ----------------------------------- man/vis_dat_ly.Rd | 27 --------------------------- 2 files changed, 62 deletions(-) delete mode 100644 R/vis_dat_ly.R delete mode 100644 man/vis_dat_ly.Rd diff --git a/R/vis_dat_ly.R b/R/vis_dat_ly.R deleted file mode 100644 index e957a21..0000000 --- a/R/vis_dat_ly.R +++ /dev/null @@ -1,35 +0,0 @@ -#' Produces an interactive visualisation of a data.frame to tell you what it contains. -#' -#' \code{vis_dat_ly} uses plotly to provide an interactive version of vis_dat, providing an at-a-glance plotly object of what is inside a dataframe. Cells are coloured according to what class they are and whether the values are missing. -#' -#' @param x a \code{data.frame} -#' -#' @return a \code{plotly} object -#' -#' @examples -#' -#' \dontrun{ -#' # currently does not work, some problems with palletes and other weird messages. -#' vis_dat_ly(airquality) -#' -#'} -#' -#' -vis_dat_ly <- function(x) { - - # x = data.frame(x = 1L:10L, - # y = letters[1:10], - # z = runif(10)) - - # apply the fingerprint function to get the class - d <- x %>% purrr::dmap(fingerprint) %>% as.matrix() - - # heatmap fails due to not being a numeric matrix - # heatmap(d) - - # plotly fails due to the number of colours being too many? - plotly::plot_ly(z = d, - type = "heatmap") - - -} diff --git a/man/vis_dat_ly.Rd b/man/vis_dat_ly.Rd deleted file mode 100644 index 97a19cc..0000000 --- a/man/vis_dat_ly.Rd +++ /dev/null @@ -1,27 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/vis_dat_ly.R -\name{vis_dat_ly} -\alias{vis_dat_ly} -\title{Produces an interactive visualisation of a data.frame to tell you what it contains.} -\usage{ -vis_dat_ly(x) -} -\arguments{ -\item{x}{a \code{data.frame}} -} -\value{ -a \code{plotly} object -} -\description{ -\code{vis_dat_ly} uses plotly to provide an interactive version of vis_dat, providing an at-a-glance plotly object of what is inside a dataframe. Cells are coloured according to what class they are and whether the values are missing. -} -\examples{ - -\dontrun{ -# currently does not work, some problems with palletes and other weird messages. -vis_dat_ly(airquality) - -} - - -}