Skip to content

Commit e6eeedd

Browse files
committed
Resolve URL redirects
1 parent f47a771 commit e6eeedd

28 files changed

+127
-127
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://plot.ly/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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ This is minor patch release with a few minor bug fixes and updates test expectat
166166
* The `name` attribute is now a "special `plot_ly()` argument" and behaves similar to `split` (it ensures a different trace for every unique value supplied). Although this leads to a breaking change (`name` was previously appended to an automatically generated trace name), it leads to a more flexible and transparent API. Those that wish to have the old behavior back should provide relevant mappings to the `name` attributes (e.g. `plot_ly(mtcars, x = ~wt, y = ~mpg, color = ~factor(vs), name = "a")` should become `plot_ly(mtcars, x = ~wt, y = ~mpg, color = ~factor(vs), name = ~paste(vs, "\na"))`)
167167
* The `color` argument now maps to `fillcolor`, making it much easier to use polygon fills to encode data values (e.g., choropleth maps). For backwards-compatibilty reasons, when `color` maps to `fillcolor`, `alpha` defaults to 0.5 (instead of 1). For an example, `plot_mapbox(mn_res, color = ~INDRESNAME)` or `plot_mapbox(mn_res, split = ~INDRESNAME, color = ~AREA, showlegend = FALSE, stroke = I("black"))`.
168168
* The `color` argument no longer automatically add `"markers"` to the `mode` attribute for scatter/scattergl trace types. Those who wish to have the old behavior back, should add `"markers"` to the `mode` explicity (e.g., change `plot_ly(economics, x = ~pce, y = ~pop, color = ~as.numeric(date), mode = "lines")` to `plot_ly(economics, x = ~pce, y = ~pop, color = ~as.numeric(date), mode = "lines+markers")`).
169-
* The `size` argument now informs a default [error_[x/y].width](https://plot.ly/r/reference/#scatter-error_x-width) (and `span` informs [error_[x/y].thickness](https://plot.ly/r/reference/#scatter-error_x-thickness)). Note you can override the default by specifying directly (e.g. `plot_ly(x = 1:10, y = 1:10, size = I(10), error_x = list(value = 5, width = 0))`).
169+
* The `size` argument now informs a default [error_[x/y].width](https://plotly.com/r/reference/#scatter-error_x-width) (and `span` informs [error_[x/y].thickness](https://plotly.com/r/reference/#scatter-error_x-thickness)). Note you can override the default by specifying directly (e.g. `plot_ly(x = 1:10, y = 1:10, size = I(10), error_x = list(value = 5, width = 0))`).
170170
* `layout.showlegend` now defaults to `TRUE` for a *single* pie trace. This is a more sensible default and matches pure plotly.js behavior.
171171

172172
### Other changes relevant for all **plotly** objects
@@ -253,7 +253,7 @@ This is minor patch release with a few minor bug fixes and updates test expectat
253253
* Added a `frame` argument to `plot_ly()` for creating animations. Also added the `animation_opts()`, `animation_slider()`, and `animation_button()` functions for configuring animation defaults.
254254
* Added a new interface to [v2 of the REST API](https://api.plot.ly/v2). This new interface makes the `plotly_POST()` and `get_figure()` functions obsolete (use `api_create()` and `api_download_plot()` instead), and thus, are now deprecated, but remain around for backwards-compatibility. For more details, see `help(api)`.
255255
* Added support for conversion of more **ggplot2** geoms via `ggplotly()`: `GeomCol`, `GeomRug`, `GeomCrossbar`, `GeomQuantile`, `GeomSpoke`, `GeomDotplot`, `GeomRasterAnn` (i.e., `annotation_raster()`), and `GeomAnnotationMap` (i.e., `annotation_map()`).
256-
* Added a new function `raster2uri()` which makes it easier to embed raster objects as [images](https://plot.ly/r/reference/#layout-images) via data URIs. For examples, see `help(raster2uri)`.
256+
* Added a new function `raster2uri()` which makes it easier to embed raster objects as [images](https://plotly.com/r/reference/#layout-images) via data URIs. For examples, see `help(raster2uri)`.
257257
* `ggplotly()` gains a new argument, `dynamicTicks`, which allows axis ticks to update upon zoom/pan interactions (fixes #485).
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).
@@ -359,7 +359,7 @@ limits.
359359
## CHANGES
360360

361361
* The `add_scattergeo()` and `add_choropleth()` functions have been deprecated in favor of `plot_geo()`.
362-
* The `add_area(...)` function changed it's meaning from `add_lines(..., fill = 'tozeroy')` to a wrapper around the area trace <https://plot.ly/r/reference/#area>. This is more consistent with the naming conventions already in place for other `add_()` functions.
362+
* The `add_area(...)` function changed it's meaning from `add_lines(..., fill = 'tozeroy')` to a wrapper around the area trace <https://plotly.com/r/reference/#area>. This is more consistent with the naming conventions already in place for other `add_()` functions.
363363
* `add_ribbons()` now shows points (instead of fill) on hover.
364364

365365
# 4.4.5 -- 19 September 2016

R/add.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ add_data <- function(p, data = NULL) {
3535
#' @seealso [plot_ly()]
3636
#' @references \url{https://plotly-r.com/overview.html}
3737
#'
38-
#' \url{https://plot.ly/r}
38+
#' \url{https://plotly.com/r}
3939
#'
40-
#' \url{https://plot.ly/r/reference/}
40+
#' \url{https://plotly.com/r/reference/}
4141
#' @author Carson Sievert
4242
#' @export
4343
#' @rdname add_trace

R/deprecated.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ get_figure <- function(username, id) {
4848
#'
4949
#' @description This function is now deprecated. It used to provide a way to store plotly
5050
#' account credentials, but that can now be done with environment variables.
51-
#' For more details and examples, see \url{https://plot.ly/r/getting-started/}.
51+
#' For more details and examples, see \url{https://plotly.com/r/getting-started/}.
5252
#'
5353
#' If you're here looking for an intro/overview of the package, see the
5454
#' \href{https://github.com/ropensci/plotly/#getting-started}{readme}

R/group2NA.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#' (i.e., color, fill, etc), it is more efficient to draw them as a single trace
88
#' with missing values that separate the groups (instead of multiple traces),
99
#' In this case, one should also take care to make sure
10-
#' \href{https://plot.ly/r/reference/#scatter-connectgaps}{connectgaps}
10+
#' \href{https://plotly.com/r/reference/#scatter-connectgaps}{connectgaps}
1111
#' is set to `FALSE`.
1212
#'
1313
#' @param data a data frame.
@@ -72,7 +72,7 @@ group2NA <- function(data, groupNames = "group", nested = NULL, ordered = NULL,
7272
data.table::setorderv(dt, cols = c(nested, groupNames, ordered))
7373

7474
# when connectgaps=FALSE, inserting NAs ensures each "group"
75-
# will be visually distinct https://plot.ly/r/reference/#scatter-connectgaps
75+
# will be visually distinct https://plotly.com/r/reference/#scatter-connectgaps
7676
# also, retracing is useful for creating polygon(s) via scatter trace(s)
7777
keyVars <- c(nested, groupNames)
7878
keyNum <- length(keyVars) + 1

R/helpers.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#'
33
#' @param p a plotly object
44
#' @param ... arguments are documented here
5-
#' \url{https://plot.ly/r/reference/#scatter-marker-colorbar}.
5+
#' \url{https://plotly.com/r/reference/#scatter-marker-colorbar}.
66
#' @param limits numeric vector of length 2. Set the extent of the colorbar scale.
77
#' @param which colorbar to modify? Should only be relevant for subplots with
88
#' multiple colorbars.
@@ -13,7 +13,7 @@
1313
#' p <- plot_ly(mtcars, x = ~wt, y = ~mpg, color = ~cyl)
1414
#'
1515
#' # pass any colorbar attribute --
16-
#' # https://plot.ly/r/reference/#scatter-marker-colorbar
16+
#' # https://plotly.com/r/reference/#scatter-marker-colorbar
1717
#' colorbar(p, len = 0.5)
1818
#'
1919
#' # Expand the limits of the colorbar
@@ -188,7 +188,7 @@ plotly_empty <- function(...) {
188188
#' Encode a raster object as a data URI
189189
#'
190190
#' Encode a raster object as a data URI, which is suitable for
191-
#' use with `layout()` \href{https://plot.ly/r/reference/#layout-images}{images}.
191+
#' use with `layout()` \href{https://plotly.com/r/reference/#layout-images}{images}.
192192
#' This is especially convenient for embedding raster images on a plot in
193193
#' a self-contained fashion (i.e., so they don't depend on external URL links).
194194
#'

R/layout.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#'
33
#' @param p A plotly object.
44
#' @param ... Arguments to the layout object. For documentation,
5-
#' see \url{https://plot.ly/r/reference/#Layout_and_layout_style_objects}
5+
#' see \url{https://plotly.com/r/reference/#Layout_and_layout_style_objects}
66
#' @param data A data frame to associate with this layout (optional). If not
77
#' provided, arguments are evaluated using the data frame in [plot_ly()].
88
#' @author Carson Sievert
@@ -49,7 +49,7 @@ layout.plotly <- function(p, ..., data = NULL) {
4949
#' @param start a start date/value.
5050
#' @param end an end date/value.
5151
#' @param ... these arguments are documented here
52-
#' \url{https://plot.ly/r/reference/#layout-xaxis-rangeslider}
52+
#' \url{https://plotly.com/r/reference/#layout-xaxis-rangeslider}
5353
#' @export
5454
#' @author Carson Sievert
5555
#' @examples
@@ -109,7 +109,7 @@ rangeslider <- function(p, start = NULL, end = NULL, ...) {
109109
#' config(plot_ly(), displaylogo = FALSE, collaborate = FALSE)
110110
#'
111111
#' # enable mathjax
112-
#' # see more examples at https://plot.ly/r/LaTeX/
112+
#' # see more examples at https://plotly.com/r/LaTeX/
113113
#' plot_ly(x = c(1, 2, 3, 4), y = c(1, 4, 9, 16)) %>%
114114
#' layout(title = TeX("\\text{Some mathjax: }\\alpha+\\beta x")) %>%
115115
#' config(mathjax = "cdn")

R/plotly.R

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,45 +27,45 @@
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://plot.ly/r/reference#scatter-fillcolor),
31-
#' [marker.color](https://plot.ly/r/reference#scatter-marker-color),
32-
#' [textfont.color](https://plot.ly/r/reference/#scatter-textfont-color), etc.).
30+
#' (e.g. [fillcolor](https://plotly.com/r/reference#scatter-fillcolor),
31+
#' [marker.color](https://plotly.com/r/reference#scatter-marker-color),
32+
#' [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")`).
3535
#' Any color understood by [grDevices::col2rgb()] may be used in this way.
3636
#' @param colors Either a colorbrewer2.org palette name (e.g. "YlOrRd" or "Blues"),
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://plot.ly/r/reference#scatter-marker-line-color)
41-
#' and [line.color](https://plot.ly/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://plot.ly/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://plot.ly/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://plot.ly/r/reference#scatter-marker-symbol) may be used in this way.
51-
#' @param symbols A character vector of [pch] values or [symbol names](https://plot.ly/r/reference#scatter-marker-symbol).
52-
#' @param linetype (Discrete) values mapped to [line.dash](https://plot.ly/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://plot.ly/r/reference#scatter-line-dash) may be used in this way.
56-
#' @param linetypes A character vector of `lty` values or [dash names](https://plot.ly/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://plot.ly/r/reference#scatter-marker-size),
59-
#' [textfont.size](https://plot.ly/r/reference#scatter-textfont-size),
60-
#' and [error_x.width](https://plot.ly/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://plot.ly/r/reference#scatter-marker-line-width),
67-
#' [line.width](https://plot.ly/r/reference#scatter-line-width) for filled polygons,
68-
#' and [error_x.thickness](https://plot.ly/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.
@@ -114,7 +114,7 @@
114114
#' add_lines(y = ~uempmed) %>%
115115
#' add_lines(y = ~psavert, color = I("red"))
116116
#'
117-
#' # Attributes are documented in the figure reference -> https://plot.ly/r/reference
117+
#' # Attributes are documented in the figure reference -> https://plotly.com/r/reference
118118
#' # You might notice plot_ly() has named arguments that aren't in this figure
119119
#' # reference. These arguments make it easier to map abstract data values to
120120
#' # visual attributes.
@@ -218,7 +218,7 @@ plot_ly <- function(data = data.frame(), ..., type = NULL, name,
218218
#'
219219
#' @param data A data frame (optional).
220220
#' @param ... arguments passed along to [plot_ly()]. They should be
221-
#' valid scattermapbox attributes - \url{https://plot.ly/r/reference/#scattermapbox}.
221+
#' valid scattermapbox attributes - \url{https://plotly.com/r/reference/#scattermapbox}.
222222
#' Note that x/y can also be used in place of lat/lon.
223223
#' @export
224224
#' @author Carson Sievert
@@ -243,7 +243,7 @@ plot_ly <- function(data = data.frame(), ..., type = NULL, name,
243243
plot_mapbox <- function(data = data.frame(), ...) {
244244
p <- config(plot_ly(data, ...), mapboxAccessToken = mapbox_token())
245245
# not only do we use this for is_mapbox(), but also setting the layout attr
246-
# https://plot.ly/r/reference/#layout-mapbox
246+
# https://plotly.com/r/reference/#layout-mapbox
247247
p$x$layout$mapType <- "mapbox"
248248
geo2cartesian(p)
249249
}
@@ -287,7 +287,7 @@ plot_geo <- function(data = data.frame(), ..., offline = FALSE) {
287287
)
288288
}
289289
# not only do we use this for is_geo(), but also setting the layout attr
290-
# https://plot.ly/r/reference/#layout-geo
290+
# https://plotly.com/r/reference/#layout-geo
291291
p$x$layout$mapType <- "geo"
292292
geo2cartesian(p)
293293
}

R/signup.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#' \item api_key key to use with the api
1414
#' \item tmp_pw temporary password to access your plotly account
1515
#' }
16-
#' @references https://plot.ly/rest/
16+
#' @references https://plotly.com/rest/
1717
#' @export
1818
#' @examples \dontrun{
1919
#' # You need a plotly username and API key to communicate with the plotly API.

R/subplots.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ subplot <- function(..., nrows = 1, widths = NULL, heights = NULL, margin = 0.02
8686
# Are any traces referencing "axislike" layout attributes that are missing?
8787
# If so, move those traces to a "new plot", and inherit layout attributes,
8888
# which makes this sort of thing possible:
89-
# https://plot.ly/r/map-subplots-and-small-multiples/
89+
# https://plotly.com/r/map-subplots-and-small-multiples/
9090
plots <- list()
9191
for (i in seq_along(plotz)) {
9292
p <- plots[[i]] <- plotz[[i]]

R/utils.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ verify_type <- function(trace) {
585585
message(
586586
"No ", trace$type, " mode specifed:\n",
587587
" Setting the mode to markers\n",
588-
" Read more about this attribute -> https://plot.ly/r/reference/#scatter-mode"
588+
" Read more about this attribute -> https://plotly.com/r/reference/#scatter-mode"
589589
)
590590
trace$mode <- "markers"
591591
}
@@ -596,7 +596,7 @@ relay_type <- function(type) {
596596
message(
597597
"No trace type specified:\n",
598598
" Based on info supplied, a '", type, "' trace seems appropriate.\n",
599-
" Read more about this trace type -> https://plot.ly/r/reference/#", type
599+
" Read more about this trace type -> https://plotly.com/r/reference/#", type
600600
)
601601
type
602602
}

0 commit comments

Comments
 (0)