Skip to content

Commit 51c7437

Browse files
committed
Merge branch 'master' into fix_wrap_axes
2 parents 8a5b8c3 + ef5067a commit 51c7437

12 files changed

+16
-18
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Authors@R: c(person("Carson", "Sievert", role = c("aut", "cre"),
1818
person("Plotly Technologies Inc.", role = "cph"))
1919
License: MIT + file LICENSE
2020
Description: Create interactive web graphics from 'ggplot2' graphs and/or a custom interface to the (MIT-licensed) JavaScript library 'plotly.js' inspired by the grammar of graphics.
21-
URL: https://plotly-book.cpsievert.me, https://github.com/ropensci/plotly#readme, https://plot.ly/r
21+
URL: https://plotly-r.com, https://github.com/ropensci/plotly#readme, https://plot.ly/r
2222
BugReports: https://github.com/ropensci/plotly/issues
2323
Depends:
2424
R (>= 3.2.0),
@@ -54,7 +54,7 @@ Suggests:
5454
knitr,
5555
devtools,
5656
shiny (>= 1.1.0),
57-
shinytest (> 1.3.0),
57+
shinytest (>= 1.3.0),
5858
curl,
5959
rmarkdown,
6060
vdiffr,

NEWS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
### Other improvements relevant for all **plotly** objects
7474

7575
* LaTeX rendering via MathJax is now supported and the new `TeX()` function may be used to flag a character vector as LaTeX (#375). Use the new `mathjax` argument in `config()` to specify either external (`mathjax="cdn"`) or local (`mathjax="local"`) MathJaX. If `"cdn"`, mathjax is loaded externally (meaning an internet connection is needed for TeX rendering). If `"local"`, the PLOTLY_MATHJAX_PATH environment variable must be set to the location (a local file path) of MathJax. IMPORTANT: **plotly** uses SVG-based mathjax rendering which doesn't play nicely with HTML-based rendering (e.g., **rmarkdown** documents and **shiny** apps). To leverage both types of rendering, you must `<iframe>` your plotly graph(s) into the larger document (see [here](https://github.com/ropensci/plotly/blob/master/inst/examples/rmd/MathJax/index.Rmd) for an **rmarkdown** example and [here](https://github.com/ropensci/plotly/blob/master/inst/examples/rmd/MathJax/index.Rmd) for a **shiny** example).
76-
* The selection (i.e., linked-brushing) mode can now switch from 'transient' to 'persistent' by holding the 'shift' key. It's still possible to _force_ persistent selection by setting `persistent = TRUE` in `highlight()`, but `persistent = FALSE` (the default) is now recommended since it allows one to switch between [persistent/transient selection](https://plotly-book.cpsievert.me/linking-views-without-shiny.html#transient-versus-persistent-selection) in the browser, rather than at the command line.
76+
* The selection (i.e., linked-brushing) mode can now switch from 'transient' to 'persistent' by holding the 'shift' key. It's still possible to _force_ persistent selection by setting `persistent = TRUE` in `highlight()`, but `persistent = FALSE` (the default) is now recommended since it allows one to switch between [persistent/transient selection](https://plotly-r.com/client-side-linking.html#fig:txmissing-modes) in the browser, rather than at the command line.
7777
* The `highlight()` function gains a `debounce` argument for throttling the rate at which `on` events may be fired. This is mainly useful for improving user experience when `highlight(on = "plotly_hover")` and mousing over relevant markers at a rapid rate (#1277)
7878
* The new `partial_bundle()` function makes it easy to leverage [partial bundles of plotly.js](https://github.com/plotly/plotly.js#partial-bundles) for reduced file sizes and faster render times.
7979
* The `config()` function gains a `locale` argument for easily changing localization defaults (#1270). This makes it possible localize date axes, and in some cases, modebar buttons (#1270).
@@ -181,7 +181,7 @@
181181
* `ggplotly()` gains a new argument, `dynamicTicks`, which allows axis ticks to update upon zoom/pan interactions (fixes #485).
182182
* Sensible sizing and positioning defaults are now provided for subplots multiple colorbars.
183183
* R linebreaks are translated to HTML linebreaks (i.e., '\n' translates to '<br />') (fixes #851).
184-
* Added a `plot_dendro()` function for a quick and dirty interactive dendrogram with support for hierarchial selection. For more, see -- <https://cpsievert.github.io/plotly_book/linking-views-without-shiny.html#nested-selections>
184+
* Added a `plot_dendro()` function for a quick and dirty interactive dendrogram with support for hierarchial selection. For more, see -- <https://plotly-r.com/client-side-linking.html#fig:dendro>
185185
* The `export()` function gains a `selenium` argument for rendering/exporting WebGL plots and exporting to 'svg'/'webp' file formats (via the plotly.js function [Plotly.downloadImage()](https://plot.ly/javascript/plotlyjs-function-reference/#plotlydownloadimage)).
186186
* Better type checking of trace attributes will now automatically reduce a single-valued vector to a constant (when appropriate). This is particularly useful for anchoring multiple traces to a single legend entry via `legendgroup` (see #675, #817, #826).
187187
* The `plotlyOutput()` function gains a `inline` argument which makes it easier to place multiple plots in the same row (in a shiny application).

R/add.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ add_data <- function(p, data = NULL) {
3333
#' @param xend "final" x position (in this context, x represents "start")
3434
#' @param yend "final" y position (in this context, y represents "start")
3535
#' @seealso [plot_ly()]
36-
#' @references \url{http://plotly-book.cpsievert.me/the-plotly-cookbook.html}
36+
#' @references \url{https://plotly-r.com/overview.html}
3737
#'
3838
#' \url{https://plot.ly/r}
3939
#'

R/ggplotly.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,10 @@ gg2list <- function(p, width = NULL, height = NULL,
238238

239239
# ggplot2 3.1.0.9000 introduced a Layer method named setup_layer()
240240
# currently, LayerSf is the only core-ggplot2 Layer that makes use
241-
# of it https://github.com/tidyverse/ggplot2/pull/2875
241+
# of it https://github.com/tidyverse/ggplot2/pull/2875#issuecomment-438708426
242242
data <- layer_data
243243
if (packageVersion("ggplot2") > "3.1.0") {
244-
data <- by_layer(function(l, d) l$setup_layer(d, plot))
244+
data <- by_layer(function(l, d) if (is.function(l$setup_layer)) l$setup_layer(d, plot) else d)
245245
}
246246

247247
# Initialise panels, add extra data for margins & missing facetting

R/highlight.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,13 @@
5050
#' @param ... currently not supported.
5151
#' @export
5252
#' @author Carson Sievert
53-
#' @references \url{https://cpsievert.github.io/plotly_book/linking-views-without-shiny.html}
53+
#' @references \url{https://plotly-r.com/client-side-linking.html}
5454
#' @seealso [attrs_selected()]
5555
#' @examples
5656
#'
5757
#' # These examples are designed to show you how to highlight/brush a *single*
5858
#' # view. For examples of multiple linked views, see `demo(package = "plotly")`
5959
#'
60-
#' library(crosstalk)
6160
#' d <- highlight_key(txhousing, ~city)
6261
#' p <- ggplot(d, aes(date, median, group = city)) + geom_line()
6362
#' gg <- ggplotly(p, tooltip = "city")

R/plotly.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
#' with the source argument in [event_data()] to retrieve the
7878
#' event data corresponding to a specific plot (shiny apps can have multiple plots).
7979
#' @author Carson Sievert
80-
#' @references <https://plotly-book.cpsievert.me/the-plotly-cookbook.html>
80+
#' @references <https://plotly-r.com/overview.html>
8181
#' @seealso \itemize{
8282
#' \item For initializing a plotly-geo object: [plot_geo()]
8383
#' \item For initializing a plotly-mapbox object: [plot_mapbox()]

R/shiny.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ register_plot_events <- function(p) {
9393
#' @export
9494
#' @seealso [event_register], [event_unregister]
9595
#' @references
96-
#' * <https://plotly-book.cpsievert.me/shiny-plotly-inputs.html>
96+
#' * <https://plotly-r.com/linking-views-with-shiny.html#shiny-plotly-inputs>
9797
#' * <https://plot.ly/javascript/plotlyjs-function-reference/>
9898
#' @author Carson Sievert
9999
#' @examples \dontrun{

inst/CITATION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ bibentry(
55
title = "plotly for R",
66
author = personList(as.person("Carson Sievert")),
77
year = "2018",
8-
url = "https://plotly-book.cpsievert.me",
8+
url = "https://plotly-r.com",
99

10-
textVersion = "Carson Sievert (2018) plotly for R. https://plotly-book.cpsievert.me"
10+
textVersion = "Carson Sievert (2018) plotly for R. https://plotly-r.com"
1111
)

man/add_trace.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/event_data.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/highlight.Rd

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/plot_ly.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)