Skip to content

Commit fa9422c

Browse files
authored
Merge pull request #654 from ropensci/fix/ggplotly
Various fixes for ggplotly
2 parents 6b311a1 + e0c0c22 commit fa9422c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+572
-300
lines changed

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: plotly
22
Title: Create Interactive Web Graphics via 'plotly.js'
3-
Version: 4.0.2
3+
Version: 4.1.0
44
Authors@R: c(person("Carson", "Sievert", role = c("aut", "cre"),
55
email = "[email protected]"),
66
person("Chris", "Parmer", role = c("aut", "cph"),
@@ -33,6 +33,7 @@ Imports:
3333
htmlwidgets,
3434
tidyr,
3535
dplyr,
36+
tibble,
3637
hexbin,
3738
lazyeval (>= 0.2.0)
3839
Suggests:

NAMESPACE

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ export(group_by_.plotly)
9191
export(groups)
9292
export(groups.plotly)
9393
export(hide_colorbar)
94+
export(hide_guides)
95+
export(hide_legend)
9496
export(knit_print.plotly_figure)
9597
export(last_plot)
9698
export(layout)
@@ -175,12 +177,14 @@ importFrom(jsonlite,fromJSON)
175177
importFrom(jsonlite,toJSON)
176178
importFrom(lazyeval,all_dots)
177179
importFrom(lazyeval,f_eval)
180+
importFrom(lazyeval,f_new)
178181
importFrom(lazyeval,is_formula)
179182
importFrom(lazyeval,is_lang)
180183
importFrom(magrittr,"%>%")
181184
importFrom(stats,complete.cases)
182185
importFrom(stats,quantile)
183186
importFrom(stats,setNames)
187+
importFrom(tibble,as_tibble)
184188
importFrom(tidyr,gather)
185189
importFrom(tidyr,gather_)
186190
importFrom(tidyr,unnest)

NEWS.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
# 4.1.0 -- 27 June 2016
2+
3+
## NEW FEATURES
4+
5+
* `ggplotly()` gains a new `originalData` argument which allows one to attach either the original (global) data, or a "scaled"/"trained" version of the data used by __ggplot2__ to draw the graph (for a quick example, `ggplotly(qplot(1:10), originalData = FALSE) %>% plotly_data()`).
6+
* Hoverinfo is now shown for fill, instead of points, for several geoms (`geom_polygon()`/`geom_hex()`/`geom_rect()`/`geom_map()`).
7+
* If `stat_identity()` is used, group domain values are preserved and displayed in hoverinfo.
8+
* New functions `hide_guides()`/`hide_legend()` were added (these work similarly to the existing `hide_colorbar()`) to simply the hiding of guides (i.e., legends/colorbars).
9+
10+
## BUG FIXES
11+
12+
* Legend titles (annotations) are no longer generated when no legend is displayed (#635, #607)
13+
* Hoverinfo is no longer displayed if no tooltip variables are present in a layer (#563).
14+
* Facets with 10 or more columns/rows should now render correctly (#640).
15+
* x-axis anchors in `facet_wrap()` should now be correct.
16+
17+
## OTHER CHANGES
18+
19+
* Upgraded to plotly.js v1.15.0 -- https://github.com/plotly/plotly.js/releases/tag/v1.15.0
20+
121
# 4.0.2 -- 25 June 2016
222

323
## BUG FIXES

0 commit comments

Comments
 (0)