Skip to content

Commit

Permalink
Merge pull request #9 from erblast/dev
Browse files Browse the repository at this point in the history
update plotly.js 2.5.1 #8
  • Loading branch information
erblast authored Oct 4, 2021
2 parents 8e3adfe + b15587d commit 7d786f8
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 40 deletions.
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: parcats
Title: Interactive Parallel Categories Diagrams for 'easyalluvial'
Version: 0.0.2.900
Version: 0.0.3
Authors@R: person( "Bjoern", "Koneswarakantha", role = c("aut","cre"), email = "[email protected]", comment = c(ORCID = "0000-0003-4585-7799") )
URL: https://erblast.github.io/parcats/
Description: Complex graphical representations of data are best explored using interactive elements.
Expand All @@ -19,7 +19,8 @@ Suggests:
randomForest,
knitr,
rmarkdown,
spelling
spelling,
plotly
RoxygenNote: 7.1.1
Imports:
easyalluvial (>= 0.2.1.0),
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# parcats 0.0.3
* upgraded packaged 'plotly.js' to v2.5.1
* fix shiny bug https://github.com/erblast/parcats/issues/6

# parcats 0.0.2
* upgraded packaged 'plotly.js' to v1.54.1
Expand Down
15 changes: 11 additions & 4 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ knitr::opts_chunk$set(
# parcats <a href='https://erblast.github.io/parcats'><img src='man/figures/logo.png' align="right" height="139" /></a>

<!-- badges: start -->
[![Travis build status](https://travis-ci.org/erblast/parcats.svg?branch=master)](https://travis-ci.org/erblast/parcats)
[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/erblast/parcats?branch=master&svg=true)](https://ci.appveyor.com/project/erblast/parcats)
[![Codecov test coverage](https://codecov.io/gh/erblast/parcats/branch/master/graph/badge.svg)](https://codecov.io/gh/erblast/parcats?branch=master)
[![CRAN status](https://www.r-pkg.org/badges/version/parcats)](https://CRAN.R-project.org/package=parcats)
Expand Down Expand Up @@ -67,12 +66,20 @@ devtools::install_github("erblast/parcats")
## Examples

```{r}
suppressPackageStartupMessages( require(tidyverse) )
suppressPackageStartupMessages( require(easyalluvial) )
suppressPackageStartupMessages( require(parcats) )
suppressPackageStartupMessages(require(tidyverse))
suppressPackageStartupMessages(require(easyalluvial))
suppressPackageStartupMessages(require(parcats))
```

### Shiny Demo

The shiny demo allows you to interactively explor the parameters of `alluvial_wide()` and `parcats()`

```{r eval = FALSE}
parcats_demo()
```


### Live Widget

The Htmlwidgets cannot be embedded in the `README.md` file. Check out the [Live Widget here](https://erblast.github.io/parcats/articles/parcats.html).
Expand Down
30 changes: 19 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

<!-- badges: start -->

[![Travis build
status](https://travis-ci.org/erblast/parcats.svg?branch=master)](https://travis-ci.org/erblast/parcats)
[![AppVeyor build
status](https://ci.appveyor.com/api/projects/status/github/erblast/parcats?branch=master&svg=true)](https://ci.appveyor.com/project/erblast/parcats)
[![Codecov test
Expand All @@ -18,6 +16,8 @@ status](https://www.r-pkg.org/badges/version/parcats)](https://CRAN.R-project.or
downloads](https://cranlogs.r-pkg.org/badges/grand-total/parcats)](https://cran.r-project.org/package=parcats)
[![metacran
downloads](https://cranlogs.r-pkg.org/badges/parcats)](https://cran.r-project.org/package=parcats)
[![R build
status](https://github.com/erblast/parcats/workflows/R-CMD-check/badge.svg)](https://github.com/erblast/parcats/actions)
<!-- badges: end -->

###### Create ‘plotly.js’ Parallel Categories Diagrams Using this Htmlwidget and ‘easyalluvial’
Expand All @@ -28,8 +28,8 @@ to the ‘easyalluvial’ package. The ‘plotly.js’ parallel categories
diagrams offer a good framework for creating interactive flow graphs
that allow manual drag and drop sorting of dimensions and categories,
highlighting single flows and displaying mouse over information. The
‘plotly.js’ dependency is quite heavy and therefore is outsourced into
a separate package.
‘plotly.js’ dependency is quite heavy and therefore is outsourced into a
separate package.

## Installation

Expand All @@ -42,7 +42,6 @@ install.packages('parcats')
### Development Version

``` r

# install.packages("devtools")
devtools::install_github("erblast/parcats")
```
Expand All @@ -52,17 +51,26 @@ devtools::install_github("erblast/parcats")
`parcats` requires an alluvial plot created with `easyalluvial` to
create an interactive parrallel categories diagram.

- [easyalluvial
- [easyalluvial
documentation](https://erblast.github.io/easyalluvial/)

- [easyalluvial github page](https://github.com/erblast/easyalluvial)
- [easyalluvial github page](https://github.com/erblast/easyalluvial)

## Examples

``` r
suppressPackageStartupMessages( require(tidyverse) )
suppressPackageStartupMessages( require(easyalluvial) )
suppressPackageStartupMessages( require(parcats) )
suppressPackageStartupMessages(require(tidyverse))
suppressPackageStartupMessages(require(easyalluvial))
suppressPackageStartupMessages(require(parcats))
```

### Shiny Demo

The shiny demo allows you to interactively explor the parameters of
`alluvial_wide()` and `parcats()`

``` r
parcats_demo()
```

### Live Widget
Expand All @@ -89,7 +97,7 @@ plots attempt to visualise ML models in a two dimensional space. Using
alluvial plots or parrallel categories diagrams we can increase the
number of dimensions.

- [Visualise model response with alluvial
- [Visualise model response with alluvial
plots](https://www.datisticsblog.com/2019/04/visualising-model-response-with-easyalluvial/)

Here we see the response of a random forest model if we vary the three
Expand Down
1 change: 1 addition & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ reference:
desc: ~
contents:
- '`parcats`'
- '`parcats_demo`'
- '`parcats-shiny`'

6 changes: 4 additions & 2 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# parcats 0.0.2
* upgraded packaged 'plotly.js' to v1.54.1
# parcats 0.0.3
* upgraded packaged 'plotly.js' to v2.5.1
* fix shiny bug https://github.com/erblast/parcats/issues/6
* added shiny demo 'parcats_demo()'

## Test environments
* local Win64, R 4.0.2
Expand Down
2 changes: 1 addition & 1 deletion inst/htmlwidgets/lib/plotly.js/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Plotly, Inc
Copyright (c) 2021 Plotly, Inc

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion inst/htmlwidgets/lib/plotly.js/locales/plotly-locale-cs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 15 additions & 18 deletions inst/htmlwidgets/lib/plotly.js/plotly.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inst/htmlwidgets/parcats.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
dependencies:
- name: plotly.js
version: 1.47.4
version: 2.5.1
src: htmlwidgets/lib/plotly.js
script: ./plotly.min.js

0 comments on commit 7d786f8

Please sign in to comment.