Skip to content

Commit 8bbdd09

Browse files
committed
More URL redirects
1 parent e6eeedd commit 8bbdd09

File tree

14 files changed

+49
-49
lines changed

14 files changed

+49
-49
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Authors@R: c(person("Carson", "Sievert", role = c("aut", "cre"),
2020
person("Plotly Technologies Inc.", role = "cph"))
2121
License: MIT + file LICENSE
2222
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.
23-
URL: https://plotly-r.com, https://github.com/ropensci/plotly#readme, https://plotly.com/r
23+
URL: https://plotly-r.com, https://github.com/ropensci/plotly#readme, https://plotly.com/r/
2424
BugReports: https://github.com/ropensci/plotly/issues
2525
Depends:
2626
R (>= 3.2.0),

NEWS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
* `renderPlotly()` now works well with `shiny::bindCache()`, meaning that plotly graphs can now be persistently cached in Shiny apps with `renderPlotly(expr) %>% shiny::bindCache()` (#1879).
1010

11-
* `ggplotly()` now works well with the [**thematic** package](https://rstudio.github.io/thematic). That is, it can now correctly translate **ggplot2** styling that derives from **thematic**. Note that, in order to use **thematic**'s auto theming in Shiny with `ggplotly()`, you need **shiny** v1.5.0 (or higher) and **htmlwidgets** v1.5.2.9000 (or higher). Relatedly, if these versions are available, one may now also call `getCurrentOutputInfo()` inside `renderPlotly()` to get CSS styles of the output container (#1801 and #1802).
11+
* `ggplotly()` now works well with the [**thematic** package](https://rstudio.github.io/thematic/). That is, it can now correctly translate **ggplot2** styling that derives from **thematic**. Note that, in order to use **thematic**'s auto theming in Shiny with `ggplotly()`, you need **shiny** v1.5.0 (or higher) and **htmlwidgets** v1.5.2.9000 (or higher). Relatedly, if these versions are available, one may now also call `getCurrentOutputInfo()` inside `renderPlotly()` to get CSS styles of the output container (#1801 and #1802).
1212

1313
## IMPROVEMENTS
1414

@@ -258,7 +258,7 @@ This is minor patch release with a few minor bug fixes and updates test expectat
258258
* Sensible sizing and positioning defaults are now provided for subplots multiple colorbars.
259259
* R linebreaks are translated to HTML linebreaks (i.e., '\n' translates to '<br />') (fixes #851).
260260
* 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>
261-
* 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)).
261+
* 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://plotly.com/javascript/plotlyjs-function-reference/#plotlydownloadimage)).
262262
* 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).
263263
* The `plotlyOutput()` function gains a `inline` argument which makes it easier to place multiple plots in the same row (in a shiny application).
264264

R/add.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ add_data <- function(p, data = NULL) {
3535
#' @seealso [plot_ly()]
3636
#' @references \url{https://plotly-r.com/overview.html}
3737
#'
38-
#' \url{https://plotly.com/r}
38+
#' \url{https://plotly.com/r/}
3939
#'
4040
#' \url{https://plotly.com/r/reference/}
4141
#' @author Carson Sievert

R/ggplotly.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
#' @param ... arguments passed onto methods.
3333
#' @export
3434
#' @author Carson Sievert
35-
#' @references \url{https://plot.ly/ggplot2}
35+
#' @references \url{https://plotly.com/ggplot2/}
3636
#' @seealso [plot_ly()]
3737
#' @examples \dontrun{
3838
#' # simple example

R/plotly.R

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#' Initiate a plotly visualization
22
#'
3-
#' This function maps R objects to [plotly.js](https://plot.ly/javascript/),
3+
#' This function maps R objects to [plotly.js](https://plotly.com/javascript/),
44
#' an (MIT licensed) web-based interactive charting library. It provides
55
#' abstractions for doing common things (e.g. mapping data values to
66
#' fill colors (via `color`) or creating [animation]s (via `frame`)) and sets
@@ -27,8 +27,8 @@
2727
#' only have one name, this argument acts very much like `split` in that it
2828
#' creates one trace for every unique value.
2929
#' @param color Values mapped to relevant 'fill-color' attribute(s)
30-
#' (e.g. [fillcolor](https://plotly.com/r/reference#scatter-fillcolor),
31-
#' [marker.color](https://plotly.com/r/reference#scatter-marker-color),
30+
#' (e.g. [fillcolor](https://plotly.com/r/reference/#scatter-fillcolor),
31+
#' [marker.color](https://plotly.com/r/reference/#scatter-marker-color),
3232
#' [textfont.color](https://plotly.com/r/reference/#scatter-textfont-color), etc.).
3333
#' The mapping from data values to color codes may be controlled using
3434
#' `colors` and `alpha`, or avoided altogether via [I()] (e.g., `color = I("red")`).
@@ -37,35 +37,35 @@
3737
#' or a vector of colors to interpolate in hexadecimal "#RRGGBB" format,
3838
#' or a color interpolation function like `colorRamp()`.
3939
#' @param stroke Similar to `color`, but values are mapped to relevant 'stroke-color' attribute(s)
40-
#' (e.g., [marker.line.color](https://plotly.com/r/reference#scatter-marker-line-color)
41-
#' and [line.color](https://plotly.com/r/reference#scatter-line-color)
40+
#' (e.g., [marker.line.color](https://plotly.com/r/reference/#scatter-marker-line-color)
41+
#' and [line.color](https://plotly.com/r/reference/#scatter-line-color)
4242
#' for filled polygons). If not specified, `stroke` inherits from `color`.
4343
#' @param strokes Similar to `colors`, but controls the `stroke` mapping.
4444
#' @param alpha A number between 0 and 1 specifying the alpha channel applied to `color`.
45-
#' Defaults to 0.5 when mapping to [fillcolor](https://plotly.com/r/reference#scatter-fillcolor) and 1 otherwise.
45+
#' Defaults to 0.5 when mapping to [fillcolor](https://plotly.com/r/reference/#scatter-fillcolor) and 1 otherwise.
4646
#' @param alpha_stroke Similar to `alpha`, but applied to `stroke`.
47-
#' @param symbol (Discrete) values mapped to [marker.symbol](https://plotly.com/r/reference#scatter-marker-symbol).
47+
#' @param symbol (Discrete) values mapped to [marker.symbol](https://plotly.com/r/reference/#scatter-marker-symbol).
4848
#' The mapping from data values to symbols may be controlled using
4949
#' `symbols`, or avoided altogether via [I()] (e.g., `symbol = I("pentagon")`).
50-
#' Any [pch] value or [symbol name](https://plotly.com/r/reference#scatter-marker-symbol) may be used in this way.
51-
#' @param symbols A character vector of [pch] values or [symbol names](https://plotly.com/r/reference#scatter-marker-symbol).
52-
#' @param linetype (Discrete) values mapped to [line.dash](https://plotly.com/r/reference#scatter-line-dash).
50+
#' Any [pch] value or [symbol name](https://plotly.com/r/reference/#scatter-marker-symbol) may be used in this way.
51+
#' @param symbols A character vector of [pch] values or [symbol names](https://plotly.com/r/reference/#scatter-marker-symbol).
52+
#' @param linetype (Discrete) values mapped to [line.dash](https://plotly.com/r/reference/#scatter-line-dash).
5353
#' The mapping from data values to symbols may be controlled using
5454
#' `linetypes`, or avoided altogether via [I()] (e.g., `linetype = I("dash")`).
55-
#' Any `lty` (see [par]) value or [dash name](https://plotly.com/r/reference#scatter-line-dash) may be used in this way.
56-
#' @param linetypes A character vector of `lty` values or [dash names](https://plotly.com/r/reference#scatter-line-dash)
55+
#' Any `lty` (see [par]) value or [dash name](https://plotly.com/r/reference/#scatter-line-dash) may be used in this way.
56+
#' @param linetypes A character vector of `lty` values or [dash names](https://plotly.com/r/reference/#scatter-line-dash)
5757
#' @param size (Numeric) values mapped to relevant 'fill-size' attribute(s)
58-
#' (e.g., [marker.size](https://plotly.com/r/reference#scatter-marker-size),
59-
#' [textfont.size](https://plotly.com/r/reference#scatter-textfont-size),
60-
#' and [error_x.width](https://plotly.com/r/reference#scatter-error_x-width)).
58+
#' (e.g., [marker.size](https://plotly.com/r/reference/#scatter-marker-size),
59+
#' [textfont.size](https://plotly.com/r/reference/#scatter-textfont-size),
60+
#' and [error_x.width](https://plotly.com/r/reference/#scatter-error_x-width)).
6161
#' The mapping from data values to symbols may be controlled using
6262
#' `sizes`, or avoided altogether via [I()] (e.g., `size = I(30)`).
6363
#' @param sizes A numeric vector of length 2 used to scale `size` to pixels.
6464
#' @param span (Numeric) values mapped to relevant 'stroke-size' attribute(s)
6565
#' (e.g.,
66-
#' [marker.line.width](https://plotly.com/r/reference#scatter-marker-line-width),
67-
#' [line.width](https://plotly.com/r/reference#scatter-line-width) for filled polygons,
68-
#' and [error_x.thickness](https://plotly.com/r/reference#scatter-error_x-thickness))
66+
#' [marker.line.width](https://plotly.com/r/reference/#scatter-marker-line-width),
67+
#' [line.width](https://plotly.com/r/reference/#scatter-line-width) for filled polygons,
68+
#' and [error_x.thickness](https://plotly.com/r/reference/#scatter-error_x-thickness))
6969
#' The mapping from data values to symbols may be controlled using
7070
#' `spans`, or avoided altogether via [I()] (e.g., `span = I(30)`).
7171
#' @param spans A numeric vector of length 2 used to scale `span` to pixels.

R/proxy.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ plotlyProxy <- function(outputId, session = shiny::getDefaultReactiveDomain(),
5454

5555
#' @param p a plotly proxy object (created with `plotlyProxy`)
5656
#' @param method a plotlyjs method to invoke. For a list of options,
57-
#' visit the \href{https://plot.ly/javascript/plotlyjs-function-reference}{plotlyjs function reference}
57+
#' visit <https://plotly.com/javascript/plotlyjs-function-reference/>
5858
#' @param ... unnamed arguments passed onto the plotly.js method
5959
#' @rdname plotlyProxy
6060
#' @export

R/shiny.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ register_plot_events <- function(p) {
113113
#' @seealso [event_register], [event_unregister]
114114
#' @references
115115
#' * <https://plotly-r.com/linking-views-with-shiny.html#shiny-plotly-inputs>
116-
#' * <https://plot.ly/javascript/plotlyjs-function-reference/>
116+
#' * <https://plotly.com/javascript/plotlyjs-function-reference/>
117117
#' @author Carson Sievert
118118
#' @examples \dontrun{
119119
#' plotly_example("shiny", "event_data")

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ plot_ly(z = ~volcano, type = "surface")
9999

100100
## Learn more
101101

102-
To learn more about special features that the plotly R package provides (e.g., [client-side linking](https://plotly-r.com/client-side-linking.html), [**shiny** integration](https://plotly-r.com/linking-views-with-shiny.html), [editing and generating static images](https://plotly-r.com/publish.html), [custom events in JavaScript](https://plotly-r.com/javascript.html), and more), see <https://plotly-r.com>. You may already be familiar with existing plotly documentation (e.g., <https://plot.ly/r/>), which is essentially a language-agnostic how-to guide for learning plotly.js, whereas <https://plotly-r.com> is meant to be more wholistic tutorial written by and for the R user. The package itself ships with a number of demos (list them by running `demo(package = "plotly")`) and shiny/rmarkdown examples (list them by running `plotly_example("shiny")` or `plotly_example("rmd")`). [Carson](https://cpsievert.me) also keeps numerous [slide decks](https://talks.cpsievert.me) with useful examples and concepts.
102+
To learn more about special features that the plotly R package provides (e.g., [client-side linking](https://plotly-r.com/client-side-linking.html), [**shiny** integration](https://plotly-r.com/linking-views-with-shiny.html), [editing and generating static images](https://plotly-r.com/publish.html), [custom events in JavaScript](https://plotly-r.com/javascript.html), and more), see <https://plotly-r.com>. You may already be familiar with existing plotly documentation (e.g., <https://plotly.com/r/>), which is essentially a language-agnostic how-to guide for learning plotly.js, whereas <https://plotly-r.com> is meant to be more wholistic tutorial written by and for the R user. The package itself ships with a number of demos (list them by running `demo(package = "plotly")`) and shiny/rmarkdown examples (list them by running `plotly_example("shiny")` or `plotly_example("rmd")`). [Carson](https://cpsievert.me) also keeps numerous [slide decks](https://talks.cpsievert.me) with useful examples and concepts.
103103

104104
## Contributing
105105

demo/custom-javascript.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ mtcars %>%
7878
")
7979

8080
# inspect different plotly.js events via browser console
81-
# see also https://plot.ly/javascript/plotlyjs-events/
81+
# see also plotly.com/javascript/plotlyjs-events/
8282
onRender(p, "
8383
function(el, x) {
8484
el.on('plotly_hover', function(d) {

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/ggplotly.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/plot_ly.Rd

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

man/plotlyProxy.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)