Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/daranzolin/pinpoint

Interactively explore points within a distribution :pushpin:
https://github.com/daranzolin/pinpoint

data-visualization htmlwidgets rstats

Last synced: about 2 months ago
JSON representation

Interactively explore points within a distribution :pushpin:

Awesome Lists containing this project

README

        

---
output: github_document
---

```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```

[![Travis build status](https://travis-ci.org/daranzolin/pinpoint.svg?branch=master)](https://travis-ci.org/daranzolin/pinpoint)
![CRAN log](http://www.r-pkg.org/badges/version/pinpoint)

## pinpoint

The goal of pinpoint is to help users explore their smallish data across a single axis. There are many ways to study a distribution--histograms, box plots, density plots, etc.--but `pinpoint` lets you see the proverbial trees from the forest.

### Installation

You can install the released version of pinpoint from GitHub with:

``` r
library(remotes)
install_github("daranzolin/pinpoint")
```

### Example

[A comprehensive introduction to the package can be viewed here.](http://rpubs.com/daranzolin/pinpoint_intro)

```{r eval=FALSE}
library(pinpoint)
library(magrittr)
mtcars$name <- rownames(mtcars)
mtcars %>%
pinpoint(x = mpg,
fill = cyl,
tooltip = name,
compare_to = "diff_from_mean",
title = "MPG by Cylinder") %>%
pp_style(jitter_width = 60,
number_format = ".2")
```

![](inst/example1.gif)

### Future work

* Compare z-scores
* Multiple levels?
* Additional styling