plotly / plotly.R

An interactive graphing library for R
https://plotly-r.com
Other
2.55k stars 625 forks source link

unsupported features from the r cookbook #161

Open chriddyp opened 9 years ago

chriddyp commented 9 years ago

Here are some remaining unsupported features as taken from the great ggplot2 cookbook.

The cookbook examples are in this branch: https://github.com/ropensci/plotly/tree/add-r-cookbook-tests, in this folder: https://github.com/ropensci/plotly/tree/add-r-cookbook-tests/tests/cookbook-test-suite

tdhock commented 9 years ago

I checked off the items that I have fixed in #163

tdhock commented 9 years ago

use this table to keep track of which cookbook test files from https://github.com/ropensci/plotly/tree/add-r-cookbook-tests/tests/cookbook-test-suite

which have been ported to testthat files under https://github.com/ropensci/plotly/tree/master/tests/testthat

original file ported by to file branch/PR
axes.R tdhock test-cookbook-axes.R #172
bars_and_lines.R cpsievert test-ggplot-bar.R #200
distributions.R cpsievert test-ggplot-[histogram density].R
facets.r
legends.R
lines.R
means_and_error_bars.R
multiple_graphs_on_one_page.r
scatterplots.R cpsievert test-cookbook-scatterplots.R #183
titles.R
cpsievert commented 9 years ago

It seems like a good number of unimplemented cookbook tests overlap with tests already implemented testhat side. For example, see here and here.

Unless anyone objects, I'm going to favor putting cookbook examples under test-ggplot-*.R (instead of test-cookbook-*.R) whenever appropriate

@chriddyp @mkcor @tdhock.

cpsievert commented 9 years ago

Taking a closer look, I don't think it's really worth adding any of the examples in bars_and_lines.R. We already have tests for most of it. There are a couple examples that have components that we don't currently test for like theme_bw() and theme(legend.position = ...), but those things have nothing to do with bars/lines.

jackparmer commented 7 years ago

Pretty sure this is outdated now and superseded by https://github.com/ropensci/plotly/milestone/3