diff --git a/ggplot2/2015-08-10-getting-started.Rmd b/ggplot2/2015-08-10-getting-started.Rmd index 10d73bb2..4dfd43be 100644 --- a/ggplot2/2015-08-10-getting-started.Rmd +++ b/ggplot2/2015-08-10-getting-started.Rmd @@ -12,7 +12,7 @@ output: --- # Plotly for R -Plotly is an R package for creating interactive web-based graphs via [plotly](https://plot.ly/)'s JavaScript graphing library, `plotly.js`. +Plotly is an R package for creating interactive web-based graphs via [plotly](https://plotly.com/)'s JavaScript graphing library, `plotly.js`. The [plotly R package](https://github.com/ropensci/plotly) serializes ggplot2 figures into Plotly's universal graph JSON. `plotly::ggplotly` will crawl the ggplot2 figure, extract and translate all of the attributes of the ggplot2 figure into JSON (the colors, the axes, the chart type, etc), and draw the graph with plotly.js. @@ -140,7 +140,7 @@ fig <- plotly_build(fig) str(fig) ``` -This declarative description of the graph is very human readable. Every attribute of the chart, the colors, the data, the text, is described in a key-value pair in this object. [View all of the possible graph attributes.](https://plot.ly/r/reference) +This declarative description of the graph is very human readable. Every attribute of the chart, the colors, the data, the text, is described in a key-value pair in this object. [View all of the possible graph attributes.](https://plotly.com/r/reference) Attributes of plotly figures are grouped into two categories: `data` and `layout`. `data` describes attributes that pertain to the plot's series, or "traces". These properties include things like the `x` and `y` data, the `color` and `name` of the trace, which axis the trace is bound to. `data` is an unnamed list. @@ -189,7 +189,7 @@ str(fig$x$layout$plot_bgcolor) # the background color of the plot is "rgb(229,22 str(fig$x$layout$legend) ``` -Each of these properties was extracted and translated from the original ggplot2 figure. [View all of the possible attributes](https://plot.ly/r/reference). +Each of these properties was extracted and translated from the original ggplot2 figure. [View all of the possible attributes](https://plotly.com/r/reference). You can edit or add these attributes and then send the figure to Plotly. Let's add custom hover text (`text`), change the legend names (`name`) add a title (`layout$title`) @@ -217,7 +217,7 @@ fig #### Resources -- [ggplot2 examples](https://plot.ly/ggplot2) -- [Plotly's native R DSL](https://plot.ly/r) -- [Plotly's declarative graph description reference](https://plot.ly/r/reference) +- [ggplot2 examples](https://plotly.com/ggplot2) +- [Plotly's native R DSL](https://plotly.com/r) +- [Plotly's declarative graph description reference](https://plotly.com/r/reference) - [`plotly` R package on GitHub](https://github.com/ropensci/plotly) diff --git a/ggplot2/2017-04-21-geom_quantile.Rmd b/ggplot2/2017-04-21-geom_quantile.Rmd index ecd8e625..b9ba7716 100644 --- a/ggplot2/2017-04-21-geom_quantile.Rmd +++ b/ggplot2/2017-04-21-geom_quantile.Rmd @@ -81,4 +81,4 @@ Reference: [ggplot2 docs](http://ggplot2.tidyverse.org/reference/geom_quantile.h ### Reference -See [https://plot.ly/r/reference](https://plot.ly/r/reference) for more information and options! +See [https://plotly.com/r/reference](https://plotly.com/r/reference) for more information and options! diff --git a/ggplot2/2017-04-21-geom_rug.Rmd b/ggplot2/2017-04-21-geom_rug.Rmd index b7aea900..789900fa 100644 --- a/ggplot2/2017-04-21-geom_rug.Rmd +++ b/ggplot2/2017-04-21-geom_rug.Rmd @@ -44,4 +44,4 @@ Reference: [ggplot2 docs](http://ggplot2.tidyverse.org/reference/geom_rug.html#e ### Reference -See [https://plot.ly/r/reference](https://plot.ly/r/reference) for more information and options! +See [https://plotly.com/r/reference](https://plotly.com/r/reference) for more information and options! diff --git a/ggplot2/2017-04-21-geom_spoke.Rmd b/ggplot2/2017-04-21-geom_spoke.Rmd index 5174a17d..88117118 100644 --- a/ggplot2/2017-04-21-geom_spoke.Rmd +++ b/ggplot2/2017-04-21-geom_spoke.Rmd @@ -37,4 +37,4 @@ Reference: [ggplot2 docs](http://ggplot2.tidyverse.org/reference/geom_spoke.html ### Reference -See [https://plot.ly/r/reference](https://plot.ly/r/reference) for more information and options! +See [https://plotly.com/r/reference](https://plotly.com/r/reference) for more information and options! diff --git a/ggplot2/2018-06-22-geom_sf.Rmd b/ggplot2/2018-06-22-geom_sf.Rmd index 5f5a5b18..d0aedb6e 100644 --- a/ggplot2/2018-06-22-geom_sf.Rmd +++ b/ggplot2/2018-06-22-geom_sf.Rmd @@ -42,8 +42,8 @@ fig ### Using Native Plotly -Alternatively, you can use [`plot_ly`, `plot_geo`, or `plot_mapbox`](https://plot.ly/r/maps-sf/). +Alternatively, you can use [`plot_ly`, `plot_geo`, or `plot_mapbox`](https://plotly.com/r/maps-sf/). ### Reference -See [https://plot.ly/r/reference/](https://plot.ly/r/reference/) for more information and chart attribute options! If you would like to read more on visualizing geo-spatial data with sf and ggplotly click [here](https://blog.cpsievert.me/2018/01/30/learning-improving-ggplotly-geom-sf/). +See [https://plotly.com/r/reference/](https://plotly.com/r/reference/) for more information and chart attribute options! If you would like to read more on visualizing geo-spatial data with sf and ggplotly click [here](https://blog.cpsievert.me/2018/01/30/learning-improving-ggplotly-geom-sf/). diff --git a/ggplot2/2019-07-30-geom_hex.Rmd b/ggplot2/2019-07-30-geom_hex.Rmd index 0bd188be..e678a915 100644 --- a/ggplot2/2019-07-30-geom_hex.Rmd +++ b/ggplot2/2019-07-30-geom_hex.Rmd @@ -17,7 +17,7 @@ output: knitr::opts_chunk$set(message = FALSE, warning=FALSE) ``` ### Basic 2d Heatmap -See also [geom_bin2d](https://plot.ly/ggplot2/geom_bin2d/) for a similar geom with rectangular bins. Note: facetting is supported in geom\_bin2d but not geom\_hex. +See also [geom_bin2d](https://plotly.com/ggplot2/geom_bin2d/) for a similar geom with rectangular bins. Note: facetting is supported in geom\_bin2d but not geom\_hex. Source: [Department of Canadian Heritage](https://open.canada.ca/data/en/dataset/a0bff264-1c80-41ee-aef9-e7da347c5158) diff --git a/r/2015-07-30-2D-Histogram.Rmd b/r/2015-07-30-2D-Histogram.Rmd index d240d069..b10caa38 100644 --- a/r/2015-07-30-2D-Histogram.Rmd +++ b/r/2015-07-30-2D-Histogram.Rmd @@ -18,7 +18,7 @@ knitr::opts_chunk$set(message = FALSE, warning=FALSE) ``` #### Basic 2D Histogram -2D histograms require `x`/`y`, but in contrast to heatmaps, `z` is optional. If `z` is not provided, binning occurs in the browser (see [here](https://plot.ly/r/reference/#histogram2d-histnorm) for a list of binning options). +2D histograms require `x`/`y`, but in contrast to heatmaps, `z` is optional. If `z` is not provided, binning occurs in the browser (see [here](https://plotly.com/r/reference/#histogram2d-histnorm) for a list of binning options). ```{r} # install.packages('mvtnorm') @@ -36,7 +36,7 @@ fig2 ``` #### Colorscale -If `z` is not provided, the only way to control coloring is through the [colorscale attribute](https://plot.ly/r/reference/#histogram2d-colorscale) +If `z` is not provided, the only way to control coloring is through the [colorscale attribute](https://plotly.com/r/reference/#histogram2d-colorscale) ```{r} fig <- fig %>% add_histogram2d(colorscale = "Blues") diff --git a/r/2015-07-30-3d-line-plots.Rmd b/r/2015-07-30-3d-line-plots.Rmd index 23b5038e..3c672895 100644 --- a/r/2015-07-30-3d-line-plots.Rmd +++ b/r/2015-07-30-3d-line-plots.Rmd @@ -120,4 +120,4 @@ fig #Reference -See [https://plot.ly/r/reference/#scatter3d](https://plot.ly/r/reference/#scatter3d) for more information and chart attribute options! \ No newline at end of file +See [https://plotly.com/r/reference/#scatter3d](https://plotly.com/r/reference/#scatter3d) for more information and chart attribute options! \ No newline at end of file diff --git a/r/2015-07-30-3d-scatter-plots.Rmd b/r/2015-07-30-3d-scatter-plots.Rmd index 5e581765..f1178127 100644 --- a/r/2015-07-30-3d-scatter-plots.Rmd +++ b/r/2015-07-30-3d-scatter-plots.Rmd @@ -100,4 +100,4 @@ fig #Reference -See [https://plot.ly/r/reference/#scatter3d](https://plot.ly/r/reference/#scatter3d) for more information and chart attribute options! \ No newline at end of file +See [https://plotly.com/r/reference/#scatter3d](https://plotly.com/r/reference/#scatter3d) for more information and chart attribute options! \ No newline at end of file diff --git a/r/2015-07-30-3d-surface-plots.Rmd b/r/2015-07-30-3d-surface-plots.Rmd index 56b6f5d3..e9212953 100644 --- a/r/2015-07-30-3d-surface-plots.Rmd +++ b/r/2015-07-30-3d-surface-plots.Rmd @@ -63,7 +63,7 @@ fig ``` #### Configure Surface Contour Levels -This example shows how to slice the surface graph on the desired position for each of x, y and z axis. [contours.x.start](https://plot.ly/r/reference/#surface-contours-x-start) sets the starting contour level value, `end` sets the end of it, and `size` sets the step between each contour level. +This example shows how to slice the surface graph on the desired position for each of x, y and z axis. [contours.x.start](https://plotly.com/r/reference/#surface-contours-x-start) sets the starting contour level value, `end` sets the end of it, and `size` sets the step between each contour level. ```{r} diff --git a/r/2015-07-30-bar-charts.Rmd b/r/2015-07-30-bar-charts.Rmd index 0784e773..166e9473 100644 --- a/r/2015-07-30-bar-charts.Rmd +++ b/r/2015-07-30-bar-charts.Rmd @@ -338,9 +338,9 @@ fig ### Horizontal Bar Chart -See examples of horizontal bar charts [here](https://plot.ly/r/horizontal-bar-charts/). +See examples of horizontal bar charts [here](https://plotly.com/r/horizontal-bar-charts/). #Reference -See [https://plot.ly/r/reference/#bar](https://plot.ly/r/reference/#bar) for more information and chart attribute options! +See [https://plotly.com/r/reference/#bar](https://plotly.com/r/reference/#bar) for more information and chart attribute options! diff --git a/r/2015-07-30-box-plots.Rmd b/r/2015-07-30-box-plots.Rmd index b787451f..e2e3a34b 100644 --- a/r/2015-07-30-box-plots.Rmd +++ b/r/2015-07-30-box-plots.Rmd @@ -101,4 +101,4 @@ fig ### Reference -See [https://plot.ly/r/reference/#box](https://plot.ly/r/reference/#box) for more information and chart attribute options! +See [https://plotly.com/r/reference/#box](https://plotly.com/r/reference/#box) for more information and chart attribute options! diff --git a/r/2015-07-30-bubble-charts.Rmd b/r/2015-07-30-bubble-charts.Rmd index 5dca54a6..888bf1be 100644 --- a/r/2015-07-30-bubble-charts.Rmd +++ b/r/2015-07-30-bubble-charts.Rmd @@ -136,9 +136,9 @@ fig To scale the bubble size, use the attribute sizeref. We recommend using the following formula to calculate a sizeref value:

sizeref = 2. * max(array of size values) / (desired maximum marker size ** 2)

-Note that setting sizeref to a value greater than 1 decreases the rendered marker sizes, while setting sizeref to less than 1 increases the rendered marker sizes. See [https://plot.ly/python/reference/#scatter-marker-sizeref](https://plot.ly/python/reference/#scatter-marker-sizeref) for more information. +Note that setting sizeref to a value greater than 1 decreases the rendered marker sizes, while setting sizeref to less than 1 increases the rendered marker sizes. See [https://plotly.com/python/reference/#scatter-marker-sizeref](https://plotly.com/python/reference/#scatter-marker-sizeref) for more information.

-Additionally, we recommend setting the sizemode attribute: [https://plot.ly/python/reference/#scatter-marker-sizemode](https://plot.ly/python/reference/#scatter-marker-sizemode) to area. +Additionally, we recommend setting the sizemode attribute: [https://plotly.com/python/reference/#scatter-marker-sizemode](https://plotly.com/python/reference/#scatter-marker-sizemode) to area. ```{r} @@ -256,4 +256,4 @@ fig #Reference -See [https://plot.ly/r/reference/#scatter](https://plot.ly/r/reference/#scatter) for more information and chart attribute options! +See [https://plotly.com/r/reference/#scatter](https://plotly.com/r/reference/#scatter) for more information and chart attribute options! diff --git a/r/2015-07-30-contour-plots.Rmd b/r/2015-07-30-contour-plots.Rmd index ccfde8a2..4436092a 100644 --- a/r/2015-07-30-contour-plots.Rmd +++ b/r/2015-07-30-contour-plots.Rmd @@ -192,8 +192,8 @@ fig ### Contour Colorscales -See [here](https://plot.ly/r/colorscales/) for more examples concerning colorscales! +See [here](https://plotly.com/r/colorscales/) for more examples concerning colorscales! ### Reference -See [https://plot.ly/r/reference/#contour](https://plot.ly/r/reference/#contour) for more information and chart attribute options! \ No newline at end of file +See [https://plotly.com/r/reference/#contour](https://plotly.com/r/reference/#contour) for more information and chart attribute options! \ No newline at end of file diff --git a/r/2015-07-30-dumbbell-plots.Rmd b/r/2015-07-30-dumbbell-plots.Rmd index e019c1b1..5dac8487 100644 --- a/r/2015-07-30-dumbbell-plots.Rmd +++ b/r/2015-07-30-dumbbell-plots.Rmd @@ -38,4 +38,4 @@ fig #Reference -See [https://plot.ly/r/reference/#scatter](https://plot.ly/r/reference/#scatter) for more information and chart attribute options! +See [https://plotly.com/r/reference/#scatter](https://plotly.com/r/reference/#scatter) for more information and chart attribute options! diff --git a/r/2015-07-30-filled-area-plots.Rmd b/r/2015-07-30-filled-area-plots.Rmd index 43bd1b8e..2750506e 100644 --- a/r/2015-07-30-filled-area-plots.Rmd +++ b/r/2015-07-30-filled-area-plots.Rmd @@ -18,7 +18,7 @@ knitr::opts_chunk$set(message = FALSE, warning=FALSE) ### Basic Filled Area Plot To make an area plot with interior filling set `fill` to `"tozeroy"` in the call for the second trace. -For more informations and options about the `fill` option checkout [https://plot.ly/r/reference/#scatter-fill](https://plot.ly/r/reference/#scatter-fill) +For more informations and options about the `fill` option checkout [https://plotly.com/r/reference/#scatter-fill](https://plotly.com/r/reference/#scatter-fill) ```{r} library(plotly) @@ -152,7 +152,7 @@ fig ### Interior Filling for Area Chart To make an area plot with interior filling set `fill` to `"tonexty"` in the call for the second trace. -For more informations and options about the `fill` option checkout [https://plot.ly/r/reference/#scatter-fill](https://plot.ly/r/reference/#scatter-fill) +For more informations and options about the `fill` option checkout [https://plotly.com/r/reference/#scatter-fill](https://plotly.com/r/reference/#scatter-fill) ```{r} library(plotly) @@ -242,4 +242,4 @@ fig #Reference -See [https://plot.ly/r/reference/#area](https://plot.ly/r/reference/#area) for more information and chart attribute options! +See [https://plotly.com/r/reference/#area](https://plotly.com/r/reference/#area) for more information and chart attribute options! diff --git a/r/2015-07-30-getting-started.Rmd b/r/2015-07-30-getting-started.Rmd index cce47d9f..e3fbb9cc 100644 --- a/r/2015-07-30-getting-started.Rmd +++ b/r/2015-07-30-getting-started.Rmd @@ -61,4 +61,4 @@ Click on legend entries to hide/show traces, click-and-drag on the chart to zoom ## Next Steps -Once you have installed the `plotly` R package, learn more about the [fundamentals of making charts](https://plot.ly/r/plotly-fundamentals/) and start making [basic charts](https://plot.ly/r/basic-charts/). +Once you have installed the `plotly` R package, learn more about the [fundamentals of making charts](https://plotly.com/r/plotly-fundamentals/) and start making [basic charts](https://plotly.com/r/basic-charts/). diff --git a/r/2015-07-30-graphing-multiple-chart-types.Rmd b/r/2015-07-30-graphing-multiple-chart-types.Rmd index f2dcd776..5ef2fbb3 100644 --- a/r/2015-07-30-graphing-multiple-chart-types.Rmd +++ b/r/2015-07-30-graphing-multiple-chart-types.Rmd @@ -106,4 +106,4 @@ fig #Reference -See [https://plot.ly/r/reference/](https://plot.ly/r/reference/) for more information and chart attribute options! +See [https://plotly.com/r/reference/](https://plotly.com/r/reference/) for more information and chart attribute options! diff --git a/r/2015-07-30-histograms.Rmd b/r/2015-07-30-histograms.Rmd index 0eb7f53e..5bbffeba 100644 --- a/r/2015-07-30-histograms.Rmd +++ b/r/2015-07-30-histograms.Rmd @@ -93,7 +93,7 @@ fig ``` ### Share bins between histograms -In this example both histograms have a compatible bin settings using [bingroup](https://plot.ly/r/reference/#histogram-bingroup) attribute. +In this example both histograms have a compatible bin settings using [bingroup](https://plotly.com/r/reference/#histogram-bingroup) attribute. ```{r} library(plotly) @@ -113,7 +113,7 @@ fig <- fig %>% layout( fig ``` -Note that traces on the same subplot, and with the same `barmode` ("stack", "relative", "group") are forced into the same `bingroup`, however traces with `barmode = "overlay"` and on different axes (of the same axis type) can have compatible bin settings. Histogram and [histogram2d](https://plot.ly/r/2D-Histogram/) trace can share the same `bingroup`. +Note that traces on the same subplot, and with the same `barmode` ("stack", "relative", "group") are forced into the same `bingroup`, however traces with `barmode = "overlay"` and on different axes (of the same axis type) can have compatible bin settings. Histogram and [histogram2d](https://plotly.com/r/2D-Histogram/) trace can share the same `bingroup`. ```{r} library(plotly) @@ -134,4 +134,4 @@ fig ``` ### Reference -See [https://plot.ly/r/reference/#histogram](https://plot.ly/r/reference/#histogram) for more information and chart attribute options! +See [https://plotly.com/r/reference/#histogram](https://plotly.com/r/reference/#histogram) for more information and chart attribute options! diff --git a/r/2015-07-30-legend.Rmd b/r/2015-07-30-legend.Rmd index 4594646d..c43a8637 100644 --- a/r/2015-07-30-legend.Rmd +++ b/r/2015-07-30-legend.Rmd @@ -167,7 +167,7 @@ fig ### Size of Legend Items -In this example, since the [itemsizing](https://plot.ly/r/reference/#layout-legend-itemsizing) attribute is set to `constant`, the size of legend items symbols remains the same, regardless of how tiny/huge the bubbles are in the graph. +In this example, since the [itemsizing](https://plotly.com/r/reference/#layout-legend-itemsizing) attribute is set to `constant`, the size of legend items symbols remains the same, regardless of how tiny/huge the bubbles are in the graph. ```{r} library(plotly) @@ -285,4 +285,4 @@ fig Reference -See [https://plot.ly/r/reference/#layout-legend](https://plot.ly/r/reference/#layout-legend) for more information and chart attribute options! +See [https://plotly.com/r/reference/#layout-legend](https://plotly.com/r/reference/#layout-legend) for more information and chart attribute options! diff --git a/r/2015-07-30-line-and-scatter.Rmd b/r/2015-07-30-line-and-scatter.Rmd index 36f1561b..27f1c972 100644 --- a/r/2015-07-30-line-and-scatter.Rmd +++ b/r/2015-07-30-line-and-scatter.Rmd @@ -82,7 +82,7 @@ fig <- fig %>% add_trace(y = ~trace_2, name = 'trace 2', mode = 'markers') fig ``` -See more examples of line charts [here](https://plot.ly/r/line-charts/). +See more examples of line charts [here](https://plotly.com/r/line-charts/). ### Qualitative Colorscales @@ -177,4 +177,4 @@ fig #Reference -See [https://plot.ly/r/reference/#scatter](https://plot.ly/r/reference/#scatter) for more information and chart attribute options! +See [https://plotly.com/r/reference/#scatter](https://plotly.com/r/reference/#scatter) for more information and chart attribute options! diff --git a/r/2015-07-30-polar-chart.Rmd b/r/2015-07-30-polar-chart.Rmd index c9680228..06b7104f 100644 --- a/r/2015-07-30-polar-chart.Rmd +++ b/r/2015-07-30-polar-chart.Rmd @@ -19,7 +19,7 @@ knitr::opts_chunk$set(message = FALSE, warning=FALSE) ### Legacy Plots -These polar charts are legacy and will likely be deprecated in [Plotly 2.0](https://github.com/plotly/plotly.js/issues/420). Please see the new `scatterpolar` and `scatterpolargl` [trace types](https://plot.ly/r/polar-chart/) for latest and greatest in Plotly polar coordinates. +These polar charts are legacy and will likely be deprecated in [Plotly 2.0](https://github.com/plotly/plotly.js/issues/420). Please see the new `scatterpolar` and `scatterpolargl` [trace types](https://plotly.com/r/polar-chart/) for latest and greatest in Plotly polar coordinates. ### Polar Scatter Chart @@ -54,4 +54,4 @@ fig ``` ### Reference -See [https://plot.ly/python/reference/#area](https://plot.ly/python/reference/#area) for more information and chart attribute options! +See [https://plotly.com/python/reference/#area](https://plotly.com/python/reference/#area) for more information and chart attribute options! diff --git a/r/2015-07-30-text-and-annotations.Rmd b/r/2015-07-30-text-and-annotations.Rmd index e5fe659c..e9aa7320 100644 --- a/r/2015-07-30-text-and-annotations.Rmd +++ b/r/2015-07-30-text-and-annotations.Rmd @@ -39,7 +39,7 @@ fig <- fig %>% layout(title = 'Primates Brain and Body Weight', fig ``` -See more options on the textposition argument [here](https://plot.ly/r/reference/#scatter-textposition). +See more options on the textposition argument [here](https://plotly.com/r/reference/#scatter-textposition). ### Styling Text @@ -395,9 +395,9 @@ fig ``` ### Customize Displayed Text with a Text Template -To show an arbitrary text in your chart you can use [texttemplate](https://plot.ly/r/reference/#pie-texttemplate), which is a template string used for rendering the information, and will override [textinfo](https://plot.ly/r/reference/#treemap-textinfo). +To show an arbitrary text in your chart you can use [texttemplate](https://plotly.com/r/reference/#pie-texttemplate), which is a template string used for rendering the information, and will override [textinfo](https://plotly.com/r/reference/#treemap-textinfo). This template string can include `variables` in %{variable} format, `numbers` in [d3-format's syntax](https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_forma), and `date` in [d3-time-fomrat's syntax](https://github.com/d3/d3-3.x-api-reference/blob/master/Time-Formatting.md#format). -`texttemplate` customizes the text that appears on your plot vs. [hovertemplate](https://plot.ly/r/reference/#pie-hovertemplate) that customizes the tooltip text. +`texttemplate` customizes the text that appears on your plot vs. [hovertemplate](https://plotly.com/r/reference/#pie-hovertemplate) that customizes the tooltip text. ```{r} library(plotly) @@ -413,7 +413,7 @@ fig ### Customize Text Template -The following example uses [textfont](https://plot.ly/r/reference/#scatterternary-textfont) to customize the added text. +The following example uses [textfont](https://plotly.com/r/reference/#scatterternary-textfont) to customize the added text. ```{r} library(plotly) @@ -433,8 +433,8 @@ fig ``` ### Set Date in Text Template -The following example shows how to show date by setting [axis.type](https://plot.ly/r/reference/#layout-yaxis-type) in [funnel charts](https://plot.ly/r/funnel-charts/). -As you can see [textinfo](https://plot.ly/r/reference/#funnel-textinfo) and [texttemplate](https://plot.ly/r/reference/#funnel-texttemplate) have the same functionality when you want to determine 'just' the trace information on the graph. +The following example shows how to show date by setting [axis.type](https://plotly.com/r/reference/#layout-yaxis-type) in [funnel charts](https://plotly.com/r/funnel-charts/). +As you can see [textinfo](https://plotly.com/r/reference/#funnel-textinfo) and [texttemplate](https://plotly.com/r/reference/#funnel-texttemplate) have the same functionality when you want to determine 'just' the trace information on the graph. ```{r} fig <- plot_ly() @@ -499,4 +499,4 @@ fig #Reference -See [https://plot.ly/r/reference/#layout-annotations](https://plot.ly/r/reference/#layout-annotations) for more information and chart attribute options! \ No newline at end of file +See [https://plotly.com/r/reference/#layout-annotations](https://plotly.com/r/reference/#layout-annotations) for more information and chart attribute options! \ No newline at end of file diff --git a/r/2015-11-19-pie-charts.Rmd b/r/2015-11-19-pie-charts.Rmd index 1cf913ab..3edb6368 100644 --- a/r/2015-11-19-pie-charts.Rmd +++ b/r/2015-11-19-pie-charts.Rmd @@ -60,7 +60,7 @@ fig ``` ### Subplots -In order to create pie chart subplots, you need to use the [domain](https://plot.ly/javascript/reference/#pie-domain) attribute. It is important to note that the `X` array set the horizontal position whilst the `Y` array sets the vertical. For example, `x=[0,0.5], y=[0, 0.5]` would mean the bottom left position of the plot. +In order to create pie chart subplots, you need to use the [domain](https://plotly.com/javascript/reference/#pie-domain) attribute. It is important to note that the `X` array set the horizontal position whilst the `Y` array sets the vertical. For example, `x=[0,0.5], y=[0, 0.5]` would mean the bottom left position of the plot. ```{r} library(plotly) library(dplyr) @@ -80,7 +80,7 @@ fig ``` ### Subplots Using Grid -This example uses a plotly [grid](https://plot.ly/javascript/reference/#layout-grid) attribute for the suplots. Reference the row and column destination using the [domain](https://plot.ly/javascript/reference/#pie-domain) attribute. +This example uses a plotly [grid](https://plotly.com/javascript/reference/#layout-grid) attribute for the suplots. Reference the row and column destination using the [domain](https://plotly.com/javascript/reference/#pie-domain) attribute. ```{r} library(plotly) library(dplyr) @@ -102,7 +102,7 @@ fig <- fig %>% layout(title = "Pie Charts with Subplots", showlegend = F, fig ``` -See more examples of subplots [here](https://plot.ly/r/subplots/). +See more examples of subplots [here](https://plotly.com/r/subplots/). #### Controlling text orientation inside sunburst sectors @@ -142,4 +142,4 @@ fig #Reference -See [https://plot.ly/r/reference/#pie](https://plot.ly/r/reference/#pie) for more information and chart attribute options! +See [https://plotly.com/r/reference/#pie](https://plotly.com/r/reference/#pie) for more information and chart attribute options! diff --git a/r/2015-11-19-shapes.Rmd b/r/2015-11-19-shapes.Rmd index 7f4f597d..dc3fb296 100644 --- a/r/2015-11-19-shapes.Rmd +++ b/r/2015-11-19-shapes.Rmd @@ -97,4 +97,4 @@ fig ``` ### Reference -Check out our [reference page](https://plot.ly/r/reference/#layout-shapes) for more information on using shapes! \ No newline at end of file +Check out our [reference page](https://plotly.com/r/reference/#layout-shapes) for more information on using shapes! \ No newline at end of file diff --git a/r/2015-12-31-network-graph.Rmd b/r/2015-12-31-network-graph.Rmd index 9ca713e7..7200862c 100644 --- a/r/2015-12-31-network-graph.Rmd +++ b/r/2015-12-31-network-graph.Rmd @@ -84,4 +84,4 @@ fig ``` ### Reference -See [https://plot.ly/python/reference/#scatter](https://plot.ly/python/reference/#scatter) for more information and chart attribute options! \ No newline at end of file +See [https://plotly.com/python/reference/#scatter](https://plotly.com/python/reference/#scatter) for more information and chart attribute options! \ No newline at end of file diff --git a/r/2016-02-22-error-bars.Rmd b/r/2016-02-22-error-bars.Rmd index 56fc171b..38a2cbf6 100644 --- a/r/2016-02-22-error-bars.Rmd +++ b/r/2016-02-22-error-bars.Rmd @@ -80,4 +80,4 @@ fig ### Reference -See [https://plot.ly/r/reference](https://plot.ly/r/reference) for more information and chart attribute options! +See [https://plotly.com/r/reference](https://plotly.com/r/reference) for more information and chart attribute options! diff --git a/r/2016-02-25-scattergl-1Million.Rmd b/r/2016-02-25-scattergl-1Million.Rmd index 8ce7370d..122932a9 100644 --- a/r/2016-02-25-scattergl-1Million.Rmd +++ b/r/2016-02-25-scattergl-1Million.Rmd @@ -30,4 +30,4 @@ fig # Reference -See [scattergl](https://plot.ly/r/reference/#scattergl) for more information. +See [scattergl](https://plotly.com/r/reference/#scattergl) for more information. diff --git a/r/2016-02-25-scattergl.Rmd b/r/2016-02-25-scattergl.Rmd index d61817f6..e3b39175 100644 --- a/r/2016-02-25-scattergl.Rmd +++ b/r/2016-02-25-scattergl.Rmd @@ -36,6 +36,6 @@ fig ## More examples -* [Compare SVG performance to WebGL](https://plot.ly/r/webgl-vs-svg/) -* [WebGL with 1 million points](https://plot.ly/r/webgl-vs-svg-million-points/) -* [WebGL for time series](https://plot.ly/r/webgl-vs-svg-time-series/) +* [Compare SVG performance to WebGL](https://plotly.com/r/webgl-vs-svg/) +* [WebGL with 1 million points](https://plotly.com/r/webgl-vs-svg-million-points/) +* [WebGL for time series](https://plotly.com/r/webgl-vs-svg-time-series/) diff --git a/r/2016-06-16-3d-mesh-plots.Rmd b/r/2016-06-16-3d-mesh-plots.Rmd index 403e4ab7..8284eaf8 100644 --- a/r/2016-06-16-3d-mesh-plots.Rmd +++ b/r/2016-06-16-3d-mesh-plots.Rmd @@ -72,4 +72,4 @@ fig #Reference -See [https://plot.ly/r/reference/#mesh3d](https://plot.ly/r/reference/#mesh3d) for more information and chart attribute options! \ No newline at end of file +See [https://plotly.com/r/reference/#mesh3d](https://plotly.com/r/reference/#mesh3d) for more information and chart attribute options! \ No newline at end of file diff --git a/r/2016-09-29-line.Rmd b/r/2016-09-29-line.Rmd index e454ca43..3d70ea4f 100644 --- a/r/2016-09-29-line.Rmd +++ b/r/2016-09-29-line.Rmd @@ -301,7 +301,7 @@ fig <- fig %>% layout(title = "Average, High and Low Temperatures in New York", fig ``` -See more examples of filled line charts [here](https://plot.ly/r/filled-area-plots/). +See more examples of filled line charts [here](https://plotly.com/r/filled-area-plots/). ### Density Plot @@ -323,6 +323,6 @@ fig #Reference -See [https://plot.ly/r/reference/#scatter](https://plot.ly/r/reference/#scatter) for more information and chart attribute options! +See [https://plotly.com/r/reference/#scatter](https://plotly.com/r/reference/#scatter) for more information and chart attribute options! diff --git a/r/2016-10-06-horizontal-bar-charts.Rmd b/r/2016-10-06-horizontal-bar-charts.Rmd index 54a1171d..7aa7edc1 100644 --- a/r/2016-10-06-horizontal-bar-charts.Rmd +++ b/r/2016-10-06-horizontal-bar-charts.Rmd @@ -198,5 +198,5 @@ fig #Reference -See [https://plot.ly/r/reference/#bar](https://plot.ly/r/reference/#bar) for more information and chart attribute options! +See [https://plotly.com/r/reference/#bar](https://plotly.com/r/reference/#bar) for more information and chart attribute options! diff --git a/r/2017-01-04-3d-axes.Rmd b/r/2017-01-04-3d-axes.Rmd index 74d76873..706bbfec 100644 --- a/r/2017-01-04-3d-axes.Rmd +++ b/r/2017-01-04-3d-axes.Rmd @@ -193,4 +193,4 @@ fig #Reference -See [https://plot.ly/r/reference/#layout-scene-xaxis](https://plot.ly/r/reference/#layout-scene-xaxis) for more information and options! \ No newline at end of file +See [https://plotly.com/r/reference/#layout-scene-xaxis](https://plotly.com/r/reference/#layout-scene-xaxis) for more information and options! \ No newline at end of file diff --git a/r/2017-01-04-3d-subplots.Rmd b/r/2017-01-04-3d-subplots.Rmd index ee82763c..8c285dc3 100644 --- a/r/2017-01-04-3d-subplots.Rmd +++ b/r/2017-01-04-3d-subplots.Rmd @@ -62,5 +62,5 @@ fig #Reference -See [https://plot.ly/r/reference/#layout-scene-xaxis](https://plot.ly/r/reference/#layout-scene-xaxis) for more information and options! +See [https://plotly.com/r/reference/#layout-scene-xaxis](https://plotly.com/r/reference/#layout-scene-xaxis) for more information and options! diff --git a/r/2017-01-13-mixed-subplot.Rmd b/r/2017-01-13-mixed-subplot.Rmd index 8fb6a74b..29ec5de3 100644 --- a/r/2017-01-13-mixed-subplot.Rmd +++ b/r/2017-01-13-mixed-subplot.Rmd @@ -99,4 +99,4 @@ fig #Reference -See [https://plot.ly/r/reference](https://plot.ly/r/reference) for more information and options! +See [https://plotly.com/r/reference](https://plotly.com/r/reference) for more information and options! diff --git a/r/2017-01-19-buttons.Rmd b/r/2017-01-19-buttons.Rmd index 50b412f8..620ac59f 100644 --- a/r/2017-01-19-buttons.Rmd +++ b/r/2017-01-19-buttons.Rmd @@ -18,7 +18,7 @@ knitr::opts_chunk$set(message = FALSE, warning=FALSE) ``` ### Methods -The [updatemenu method](https://plot.ly/r/reference/#layout-updatemenus-buttons-method) determines which [plotly.js](https://plot.ly/javascript/plotlyjs-function-reference/) function will be used to modify the chart. There are 4 possible methods: +The [updatemenu method](https://plotly.com/r/reference/#layout-updatemenus-buttons-method) determines which [plotly.js](https://plotly.com/javascript/plotlyjs-function-reference/) function will be used to modify the chart. There are 4 possible methods: * `"restyle"`: modify data or data attributes * `"relayout"`: modify layout attributes @@ -303,11 +303,11 @@ fig ### Animate Button -Animations are currently only available in the [development package](https://plot.ly/r/getting-started/#installation) and [offline](https://cpsievert.github.io/plotly_book/key-frame-animations.html). +Animations are currently only available in the [development package](https://plotly.com/r/getting-started/#installation) and [offline](https://cpsievert.github.io/plotly_book/key-frame-animations.html). ### Style Buttons -When adding buttons to Plotly charts, users have the option of styling the color, font, padding, and position of the buttons. The example below demostrates hot to apply different styling options. See all updatemenus styling attributes here: https://plot.ly/r/reference/#layout-updatemenus. +When adding buttons to Plotly charts, users have the option of styling the color, font, padding, and position of the buttons. The example below demostrates hot to apply different styling options. See all updatemenus styling attributes here: https://plotly.com/r/reference/#layout-updatemenus. #### Mapbox Access Token @@ -323,7 +323,7 @@ Sys.setenv("MAPBOX_TOKEN" = mapboxToken) # read in wind turbines and farms data df_wind = read.csv('data/2805.csv') -df_farms = read.csv('https://plot.ly/~jackp/17256.csv', skipNul = TRUE) +df_farms = read.csv('https://plotly.com/~jackp/17256.csv', skipNul = TRUE) # subset and clean data df_sub <- subset(df_wind, manufac != "unknown", select=c(lat_DD, long_DD, manufac)) @@ -413,4 +413,4 @@ fig #Reference -See [https://plot.ly/r/reference/#layout-updatemenus](https://plot.ly/r/reference/#layout-updatemenus) for more information and options! +See [https://plotly.com/r/reference/#layout-updatemenus](https://plotly.com/r/reference/#layout-updatemenus) for more information and options! diff --git a/r/2017-01-19-sliders.Rmd b/r/2017-01-19-sliders.Rmd index 6faf849d..0b170431 100644 --- a/r/2017-01-19-sliders.Rmd +++ b/r/2017-01-19-sliders.Rmd @@ -219,4 +219,4 @@ fig #Reference -See [https://plot.ly/r/reference/#layout-updatemenus](https://plot.ly/r/reference/#layout-updatemenus) for more information and options! +See [https://plotly.com/r/reference/#layout-updatemenus](https://plotly.com/r/reference/#layout-updatemenus) for more information and options! diff --git a/r/2017-01-20-font-styles.Rmd b/r/2017-01-20-font-styles.Rmd index 562c4cbf..d1d5eef6 100644 --- a/r/2017-01-20-font-styles.Rmd +++ b/r/2017-01-20-font-styles.Rmd @@ -36,4 +36,4 @@ fig #Reference -See [https://plot.ly/r/reference/#layout-font](https://plot.ly/r/reference/#layout-font) for more information and options! \ No newline at end of file +See [https://plotly.com/r/reference/#layout-font](https://plotly.com/r/reference/#layout-font) for more information and options! \ No newline at end of file diff --git a/r/2017-01-20-ternary-plots.Rmd b/r/2017-01-20-ternary-plots.Rmd index 4de14f27..4d404746 100644 --- a/r/2017-01-20-ternary-plots.Rmd +++ b/r/2017-01-20-ternary-plots.Rmd @@ -76,4 +76,4 @@ fig #Reference -See [https://plot.ly/r/reference/#scatterternary](https://plot.ly/r/reference#scatterternary) for more information and options! \ No newline at end of file +See [https://plotly.com/r/reference/#scatterternary](https://plotly.com/r/reference#scatterternary) for more information and options! \ No newline at end of file diff --git a/r/2017-02-03-candlestick.Rmd b/r/2017-02-03-candlestick.Rmd index aa286812..e3b79c53 100644 --- a/r/2017-02-03-candlestick.Rmd +++ b/r/2017-02-03-candlestick.Rmd @@ -255,4 +255,4 @@ fig #Reference -See [https://plot.ly/r/reference](https://plot.ly/r/reference) for more information and chart attribute options! +See [https://plotly.com/r/reference](https://plotly.com/r/reference) for more information and chart attribute options! diff --git a/r/2017-02-03-ohlc-charts.Rmd b/r/2017-02-03-ohlc-charts.Rmd index 651a10fc..e29c1db4 100644 --- a/r/2017-02-03-ohlc-charts.Rmd +++ b/r/2017-02-03-ohlc-charts.Rmd @@ -123,4 +123,4 @@ fig #Reference -See [https://plot.ly/r/reference/#ohlc](https://plot.ly/r/reference/#ohlc) for more information and chart attribute options! +See [https://plotly.com/r/reference/#ohlc](https://plotly.com/r/reference/#ohlc) for more information and chart attribute options! diff --git a/r/2017-02-27-scattermapbox.Rmd b/r/2017-02-27-scattermapbox.Rmd index 81096638..daf3d6ae 100644 --- a/r/2017-02-27-scattermapbox.Rmd +++ b/r/2017-02-27-scattermapbox.Rmd @@ -114,4 +114,4 @@ fig #Reference -See [https://plot.ly/r/reference/#scattermapbox](https://plot.ly/r/reference/#scattermapbox) for more information and options! \ No newline at end of file +See [https://plotly.com/r/reference/#scattermapbox](https://plotly.com/r/reference/#scattermapbox) for more information and options! \ No newline at end of file diff --git a/r/2017-03-07-parcoords.Rmd b/r/2017-03-07-parcoords.Rmd index 373d97d0..f6050095 100644 --- a/r/2017-03-07-parcoords.Rmd +++ b/r/2017-03-07-parcoords.Rmd @@ -117,4 +117,4 @@ fig #Reference -See [https://plot.ly/r/reference/#parcoords](https://plot.ly/r/reference/#parcoords) for more information and options! \ No newline at end of file +See [https://plotly.com/r/reference/#parcoords](https://plotly.com/r/reference/#parcoords) for more information and options! \ No newline at end of file diff --git a/r/2017-04-24-carpet-plot.Rmd b/r/2017-04-24-carpet-plot.Rmd index faa94363..ca68e72f 100644 --- a/r/2017-04-24-carpet-plot.Rmd +++ b/r/2017-04-24-carpet-plot.Rmd @@ -45,7 +45,7 @@ fig ### Add Carpet Axes -Use `aaxis` or `baxis` lists to make changes to the axes. For a more detailed list of attributes refer to [R reference](https://plot.ly/r/reference/#carpet-aaxis). +Use `aaxis` or `baxis` lists to make changes to the axes. For a more detailed list of attributes refer to [R reference](https://plotly.com/r/reference/#carpet-aaxis). ```{r} library(plotly) @@ -114,8 +114,8 @@ fig ### Add Points and Contours -To add points and lines to see [Carpet Scatter Plots](https://plot.ly/r/carpet-scatter) or to add contours see [Carpet Contour Plots](https://plot.ly/r/carpet-contour) +To add points and lines to see [Carpet Scatter Plots](https://plotly.com/r/carpet-scatter) or to add contours see [Carpet Contour Plots](https://plotly.com/r/carpet-contour) ### Reference -See [https://plot.ly/r/reference/#carpet](https://plot.ly/r/reference/#carpet) for more information and options! \ No newline at end of file +See [https://plotly.com/r/reference/#carpet](https://plotly.com/r/reference/#carpet) for more information and options! \ No newline at end of file diff --git a/r/2017-04-24-contourcarpet.Rmd b/r/2017-04-24-contourcarpet.Rmd index b74a0985..416be1d6 100644 --- a/r/2017-04-24-contourcarpet.Rmd +++ b/r/2017-04-24-contourcarpet.Rmd @@ -18,7 +18,7 @@ knitr::opts_chunk$set(message = FALSE, warning=FALSE) ### Basic Carpet Plot -Set the `x` and `y` coorindates, using `x` and `y` attributes. If `x` coorindate values are ommitted a cheater plot will be created. To save parameter values use `a` and `b` attributes. To make changes to the axes, use `aaxis` or `baxis` attributes. For a more detailed list of axes attributes refer to [R reference](https://plot.ly/r/reference/#contourcarpet-aaxis). +Set the `x` and `y` coorindates, using `x` and `y` attributes. If `x` coorindate values are ommitted a cheater plot will be created. To save parameter values use `a` and `b` attributes. To make changes to the axes, use `aaxis` or `baxis` attributes. For a more detailed list of axes attributes refer to [R reference](https://plotly.com/r/reference/#contourcarpet-aaxis). ```{r} library(plotly) @@ -298,4 +298,4 @@ fig ### Reference -See [https://plot.ly/r/reference/#contourcarpet](https://plot.ly/r/reference/#contourcarpet) for more information and options! \ No newline at end of file +See [https://plotly.com/r/reference/#contourcarpet](https://plotly.com/r/reference/#contourcarpet) for more information and options! \ No newline at end of file diff --git a/r/2017-04-24-scattercarpet.Rmd b/r/2017-04-24-scattercarpet.Rmd index 6b49d0ce..d5d2598b 100644 --- a/r/2017-04-24-scattercarpet.Rmd +++ b/r/2017-04-24-scattercarpet.Rmd @@ -154,4 +154,4 @@ fig #Reference -See [https://plot.ly/r/reference/#scattercarpet](https://plot.ly/r/reference/#scattercarpet) for more information and options! \ No newline at end of file +See [https://plotly.com/r/reference/#scattercarpet](https://plotly.com/r/reference/#scattercarpet) for more information and options! \ No newline at end of file diff --git a/r/2017-05-19-sankey.Rmd b/r/2017-05-19-sankey.Rmd index 4bdf9f0f..e9eb5995 100644 --- a/r/2017-05-19-sankey.Rmd +++ b/r/2017-05-19-sankey.Rmd @@ -219,7 +219,7 @@ fig ``` ### Define Node Position -The following example sets [node.x](https://plot.ly/r/reference/#sankey-node-x) and `node.y` to place nodes in the specified locations, except in the `snap arrangement` (default behaviour when `node.x` and `node.y` are not defined) to avoid overlapping of the nodes, therefore, an automatic snapping of elements will be set to define the padding between nodes via [nodepad](https://plot.ly/r/reference/#sankey-node-pad). The other possible arrangements are: 1) perpendicular 2) freeform 3) fixed +The following example sets [node.x](https://plotly.com/r/reference/#sankey-node-x) and `node.y` to place nodes in the specified locations, except in the `snap arrangement` (default behaviour when `node.x` and `node.y` are not defined) to avoid overlapping of the nodes, therefore, an automatic snapping of elements will be set to define the padding between nodes via [nodepad](https://plotly.com/r/reference/#sankey-node-pad). The other possible arrangements are: 1) perpendicular 2) freeform 3) fixed ```{r} library(plotly) @@ -241,4 +241,4 @@ fig ``` ### Reference -See [https://plot.ly/r/reference/#sankey](https://plot.ly/r/reference/#sankey) for more information and options! \ No newline at end of file +See [https://plotly.com/r/reference/#sankey](https://plotly.com/r/reference/#sankey) for more information and options! \ No newline at end of file diff --git a/r/2017-05-25-dot-plots.Rmd b/r/2017-05-25-dot-plots.Rmd index 974df4ff..0f5fbe5b 100644 --- a/r/2017-05-25-dot-plots.Rmd +++ b/r/2017-05-25-dot-plots.Rmd @@ -38,4 +38,4 @@ fig #Reference -See [https://plot.ly/r/reference/#scatter](https://plot.ly/r/reference/#scatter) for more information and chart attribute options! +See [https://plotly.com/r/reference/#scatter](https://plotly.com/r/reference/#scatter) for more information and chart attribute options! diff --git a/r/2017-05-26-ternary-contour.Rmd b/r/2017-05-26-ternary-contour.Rmd index 897f9d03..fba4d989 100644 --- a/r/2017-05-26-ternary-contour.Rmd +++ b/r/2017-05-26-ternary-contour.Rmd @@ -92,4 +92,4 @@ fig #Reference -See [https://plot.ly/r/reference/#scatterternary](https://plot.ly/r/reference/#scatterternary) for more information and options! \ No newline at end of file +See [https://plotly.com/r/reference/#scatterternary](https://plotly.com/r/reference/#scatterternary) for more information and options! \ No newline at end of file diff --git a/r/2017-08-31-colorscales.Rmd b/r/2017-08-31-colorscales.Rmd index 0a35c541..1a9776fb 100644 --- a/r/2017-08-31-colorscales.Rmd +++ b/r/2017-08-31-colorscales.Rmd @@ -67,7 +67,7 @@ fig ### Share Color Axis -This example shows how to specify the color scale and color bar per trace. To share colorscale information in multiple subplots, you can use [coloraxis](https://plot.ly/r/reference/#scatter-marker-line-coloraxis). +This example shows how to specify the color scale and color bar per trace. To share colorscale information in multiple subplots, you can use [coloraxis](https://plotly.com/r/reference/#scatter-marker-line-coloraxis). Below we show how to set a reference coloraxis1 to a shared coloraxis, which are set in the layout. Note that multiple color scales can be linked to the same color. ```{r} @@ -92,4 +92,4 @@ fig #Reference -See [https://plot.ly/r/reference/#heatmap-colorscale](https://plot.ly/r/reference/#heatmap-colorscale) for more information and options! \ No newline at end of file +See [https://plotly.com/r/reference/#heatmap-colorscale](https://plotly.com/r/reference/#heatmap-colorscale) for more information and options! \ No newline at end of file diff --git a/r/2017-10-23-aggregations.Rmd b/r/2017-10-23-aggregations.Rmd index 34ad11e0..d8b21c63 100644 --- a/r/2017-10-23-aggregations.Rmd +++ b/r/2017-10-23-aggregations.Rmd @@ -123,7 +123,7 @@ fig ``` {r} library(plotly) -df <- read.csv("https://plot.ly/~public.health/17.csv", skipNul = TRUE, encoding = "UTF-8") +df <- read.csv("https://plotly.com/~public.health/17.csv", skipNul = TRUE, encoding = "UTF-8") labels <- function(size, label) { list( @@ -235,4 +235,4 @@ fig #### Reference -See [https://plot.ly/r/reference/](https://plot.ly/r/reference/) for more information and options! +See [https://plotly.com/r/reference/](https://plotly.com/r/reference/) for more information and options! diff --git a/r/2017-10-26-filter.Rmd b/r/2017-10-26-filter.Rmd index 68aef2e4..50186317 100644 --- a/r/2017-10-26-filter.Rmd +++ b/r/2017-10-26-filter.Rmd @@ -43,4 +43,4 @@ fig #### Reference -See [https://plot.ly/r/reference/](https://plot.ly/r/reference/) for more information and options! +See [https://plotly.com/r/reference/](https://plotly.com/r/reference/) for more information and options! diff --git a/r/2017-10-26-groupby.Rmd b/r/2017-10-26-groupby.Rmd index d09e827b..7e93e6c5 100644 --- a/r/2017-10-26-groupby.Rmd +++ b/r/2017-10-26-groupby.Rmd @@ -49,4 +49,4 @@ fig #### Reference -See [https://plot.ly/r/reference/](https://plot.ly/r/reference/) for more information and options! +See [https://plotly.com/r/reference/](https://plotly.com/r/reference/) for more information and options! diff --git a/r/2018-01-16-violin.Rmd b/r/2018-01-16-violin.Rmd index 0141624a..0b16b088 100644 --- a/r/2018-01-16-violin.Rmd +++ b/r/2018-01-16-violin.Rmd @@ -286,4 +286,4 @@ fig #### Reference -See [https://plot.ly/r/reference/](https://plot.ly/r/reference/) for more information and options! +See [https://plotly.com/r/reference/](https://plotly.com/r/reference/) for more information and options! diff --git a/r/2018-01-29-hover-text-and-formatting.Rmd b/r/2018-01-29-hover-text-and-formatting.Rmd index b46f0568..f7cfa4e0 100644 --- a/r/2018-01-29-hover-text-and-formatting.Rmd +++ b/r/2018-01-29-hover-text-and-formatting.Rmd @@ -61,10 +61,10 @@ fig #### Customize Tooltip Text with a Hovertemplate -To customize the tooltip on your graph you can use [hovertemplate](https://plot.ly/r/reference/#pie-hovertemplate), which is a template string used for rendering the information that appear on hoverbox. +To customize the tooltip on your graph you can use [hovertemplate](https://plotly.com/r/reference/#pie-hovertemplate), which is a template string used for rendering the information that appear on hoverbox. This template string can include `variables` in %{variable} format, `numbers` in [d3-format's syntax](https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_forma), and `date` in [d3-time-fomrat's syntax](https://github.com/d3/d3-3.x-api-reference/blob/master/Time-Formatting.md#format). -Hovertemplate customize the tooltip text vs. [texttemplate](https://plot.ly/r/reference/#pie-texttemplate) which customizes the text that appears on your chart.
-Set the horizontal alignment of the text within tooltip with [hoverlabel.align](https://plot.ly/r/reference/#layout-hoverlabel-align). +Hovertemplate customize the tooltip text vs. [texttemplate](https://plotly.com/r/reference/#pie-texttemplate) which customizes the text that appears on your chart.
+Set the horizontal alignment of the text within tooltip with [hoverlabel.align](https://plotly.com/r/reference/#layout-hoverlabel-align). ```{r} library(plotly) @@ -143,4 +143,4 @@ fig #### Reference -See [https://plot.ly/r/reference/](https://plot.ly/r/reference/) for more information and options! +See [https://plotly.com/r/reference/](https://plotly.com/r/reference/) for more information and options! diff --git a/r/2018-01-30-histogram2dcontour.Rmd b/r/2018-01-30-histogram2dcontour.Rmd index f28a4812..cf3255d6 100644 --- a/r/2018-01-30-histogram2dcontour.Rmd +++ b/r/2018-01-30-histogram2dcontour.Rmd @@ -85,4 +85,4 @@ fig #### Reference -See [https://plot.ly/r/reference/#histogram2dcontour](https://plot.ly/r/reference/#histogram2dcontour) for more information and options! +See [https://plotly.com/r/reference/#histogram2dcontour](https://plotly.com/r/reference/#histogram2dcontour) for more information and options! diff --git a/r/2018-02-13-scatterpolar.Rmd b/r/2018-02-13-scatterpolar.Rmd index f78ba6fc..db2ab89a 100644 --- a/r/2018-02-13-scatterpolar.Rmd +++ b/r/2018-02-13-scatterpolar.Rmd @@ -18,7 +18,7 @@ knitr::opts_chunk$set(message = FALSE, warning=FALSE) ``` #### Polar Charts 1.0 -Looking for the old polar chart docs? See [legacy polar charts](https://plot.ly/r/legacy-polar-chart/) +Looking for the old polar chart docs? See [legacy polar charts](https://plotly.com/r/legacy-polar-chart/) #### Basic Polar Charts @@ -585,4 +585,4 @@ fig #### Reference -See [https://plot.ly/r/reference/#polar](https://plot.ly/r/reference/#polar) for more information and options! \ No newline at end of file +See [https://plotly.com/r/reference/#polar](https://plotly.com/r/reference/#polar) for more information and options! \ No newline at end of file diff --git a/r/2018-02-23-radar-charts.Rmd b/r/2018-02-23-radar-charts.Rmd index 5d7a4ee6..cf9496c5 100644 --- a/r/2018-02-23-radar-charts.Rmd +++ b/r/2018-02-23-radar-charts.Rmd @@ -76,4 +76,4 @@ fig #### Reference -See [https://plot.ly/r/reference/#scatterpolar](https://plot.ly/r/reference/#scatterpolar) for more information and options! \ No newline at end of file +See [https://plotly.com/r/reference/#scatterpolar](https://plotly.com/r/reference/#scatterpolar) for more information and options! \ No newline at end of file diff --git a/r/2018-03-15-marker-style.Rmd b/r/2018-03-15-marker-style.Rmd index 13a80db0..6dccd843 100644 --- a/r/2018-03-15-marker-style.Rmd +++ b/r/2018-03-15-marker-style.Rmd @@ -248,4 +248,4 @@ fig ### Reference -See [https://plot.ly/r/reference/](https://plot.ly/r/reference/) for more information and chart attribute options! \ No newline at end of file +See [https://plotly.com/r/reference/](https://plotly.com/r/reference/) for more information and chart attribute options! \ No newline at end of file diff --git a/r/2018-05-23-splom.Rmd b/r/2018-05-23-splom.Rmd index 865de781..21f6449c 100644 --- a/r/2018-05-23-splom.Rmd +++ b/r/2018-05-23-splom.Rmd @@ -229,4 +229,4 @@ fig ### Reference -See [https://plot.ly/r/reference/](https://plot.ly/r/reference/) for more information and chart attribute options! +See [https://plotly.com/r/reference/](https://plotly.com/r/reference/) for more information and chart attribute options! diff --git a/r/2018-06-06-cone.Rmd b/r/2018-06-06-cone.Rmd index 4922d667..803c2dde 100644 --- a/r/2018-06-06-cone.Rmd +++ b/r/2018-06-06-cone.Rmd @@ -216,4 +216,4 @@ fig ### Reference -See [https://plot.ly/r/reference/](https://plot.ly/r/reference/) for more information and chart attribute options! \ No newline at end of file +See [https://plotly.com/r/reference/](https://plotly.com/r/reference/) for more information and chart attribute options! \ No newline at end of file diff --git a/r/2018-06-22-sf.Rmd b/r/2018-06-22-sf.Rmd index 3e287a9f..c9bb5721 100644 --- a/r/2018-06-22-sf.Rmd +++ b/r/2018-06-22-sf.Rmd @@ -78,8 +78,8 @@ fig ### Using ggplot2 -Alternatively, if working in ggplot2 you can use [`ggplotly`](https://plot.ly/ggplot2/maps-sf/). +Alternatively, if working in ggplot2 you can use [`ggplotly`](https://plotly.com/ggplot2/maps-sf/). ### Reference -See [https://plot.ly/r/reference/](https://plot.ly/r/reference/) for more information and chart attribute options! If you would like to read more on visualizing geo-spatial data with sf and plotly click [here](https://blog.cpsievert.me/2018/03/30/visualizing-geo-spatial-data-with-sf-and-plotly/). \ No newline at end of file +See [https://plotly.com/r/reference/](https://plotly.com/r/reference/) for more information and chart attribute options! If you would like to read more on visualizing geo-spatial data with sf and plotly click [here](https://blog.cpsievert.me/2018/03/30/visualizing-geo-spatial-data-with-sf-and-plotly/). \ No newline at end of file diff --git a/r/2018-07-02-locales.Rmd b/r/2018-07-02-locales.Rmd index 945c608f..867b0bf5 100644 --- a/r/2018-07-02-locales.Rmd +++ b/r/2018-07-02-locales.Rmd @@ -33,4 +33,4 @@ fig <- fig %>% ### Reference -See `?plotly::config` for more information about config options or [click here](https://plot.ly/r/configuration-options/). For more information regarding localization, [click here](https://github.com/plotly/plotly.js/tree/master/dist#to-include-localization). \ No newline at end of file +See `?plotly::config` for more information about config options or [click here](https://plotly.com/r/configuration-options/). For more information regarding localization, [click here](https://github.com/plotly/plotly.js/tree/master/dist#to-include-localization). \ No newline at end of file diff --git a/r/2018-07-19-streamtube.Rmd b/r/2018-07-19-streamtube.Rmd index 092fd789..15a7a72b 100644 --- a/r/2018-07-19-streamtube.Rmd +++ b/r/2018-07-19-streamtube.Rmd @@ -99,4 +99,4 @@ fig #### Reference -See our [reference page](https://plot.ly/r/reference/) for more information and chart attribute options!. \ No newline at end of file +See our [reference page](https://plotly.com/r/reference/) for more information and chart attribute options!. \ No newline at end of file diff --git a/r/2018-08-03-heatmap-webgl.Rmd b/r/2018-08-03-heatmap-webgl.Rmd index 64427ee0..e4ae4c0d 100644 --- a/r/2018-08-03-heatmap-webgl.Rmd +++ b/r/2018-08-03-heatmap-webgl.Rmd @@ -41,4 +41,4 @@ fig #### Reference -See [https://plot.ly/r/reference/#heatmapgl](https://plot.ly/r/reference/#heatmapgl) for more information and options! \ No newline at end of file +See [https://plotly.com/r/reference/#heatmapgl](https://plotly.com/r/reference/#heatmapgl) for more information and options! \ No newline at end of file diff --git a/r/2018-08-09-webgl-text-and-annotations.Rmd b/r/2018-08-09-webgl-text-and-annotations.Rmd index 1c51588b..0c8fb24b 100644 --- a/r/2018-08-09-webgl-text-and-annotations.Rmd +++ b/r/2018-08-09-webgl-text-and-annotations.Rmd @@ -85,4 +85,4 @@ fig #Reference -See [https://plot.ly/r/reference/#scattergl](https://plot.ly/r/reference/#scattergl) for more information and chart attribute options! \ No newline at end of file +See [https://plotly.com/r/reference/#scattergl](https://plotly.com/r/reference/#scattergl) for more information and chart attribute options! \ No newline at end of file diff --git a/r/2018-10-03-colorway.Rmd b/r/2018-10-03-colorway.Rmd index cca7f3ef..630311cf 100644 --- a/r/2018-10-03-colorway.Rmd +++ b/r/2018-10-03-colorway.Rmd @@ -49,4 +49,4 @@ fig #Reference -See [https://plot.ly/r/reference/#layout-colorway](https://plot.ly/r/reference/#layout-colorway) for more information about the colorway attribute. \ No newline at end of file +See [https://plotly.com/r/reference/#layout-colorway](https://plotly.com/r/reference/#layout-colorway) for more information about the colorway attribute. \ No newline at end of file diff --git a/r/2018-10-11-3d-hover.Rmd b/r/2018-10-11-3d-hover.Rmd index 16a81785..ecbfd9a7 100644 --- a/r/2018-10-11-3d-hover.Rmd +++ b/r/2018-10-11-3d-hover.Rmd @@ -58,7 +58,7 @@ fig ### Customize Hover for Surface Contours In addition to spikelines, Plotly 3D Surface plots also display surface contours on hover by default. -These are customized by styling the [`contours`](https://plot.ly/r/reference/#surface-contours) +These are customized by styling the [`contours`](https://plotly.com/r/reference/#surface-contours) attribute in the surface trace. ```{r} @@ -89,4 +89,4 @@ fig # Reference -See [https://plot.ly/r/reference/#layout-scene-xaxis](https://plot.ly/r/reference/#layout-scene-xaxis) and [https://plot.ly/r/reference/#surface-contours](https://plot.ly/r/reference/#surface-contours) for more information and options! \ No newline at end of file +See [https://plotly.com/r/reference/#layout-scene-xaxis](https://plotly.com/r/reference/#layout-scene-xaxis) and [https://plotly.com/r/reference/#surface-contours](https://plotly.com/r/reference/#surface-contours) for more information and options! \ No newline at end of file diff --git a/r/2018-11-22-3d-surface-lighting.Rmd b/r/2018-11-22-3d-surface-lighting.Rmd index 21968673..1eb8c6c2 100644 --- a/r/2018-11-22-3d-surface-lighting.Rmd +++ b/r/2018-11-22-3d-surface-lighting.Rmd @@ -148,4 +148,4 @@ fig #Reference -See [https://plot.ly/r/reference/#surface-lighting](https://plot.ly/r/reference/#surface-lighting) for more information and options! \ No newline at end of file +See [https://plotly.com/r/reference/#surface-lighting](https://plotly.com/r/reference/#surface-lighting) for more information and options! \ No newline at end of file diff --git a/r/2018-11-23-table.Rmd b/r/2018-11-23-table.Rmd index 7f4cd660..f912d623 100644 --- a/r/2018-11-23-table.Rmd +++ b/r/2018-11-23-table.Rmd @@ -134,5 +134,5 @@ fig #Reference -See [https://plot.ly/r/reference/#table](https://plot.ly/r/reference/#table) for more information and chart attribute options! +See [https://plotly.com/r/reference/#table](https://plotly.com/r/reference/#table) for more information and chart attribute options! diff --git a/r/2019-04-12-sunburst-chart.Rmd b/r/2019-04-12-sunburst-chart.Rmd index 74d3ed35..17b9aa34 100644 --- a/r/2019-04-12-sunburst-chart.Rmd +++ b/r/2019-04-12-sunburst-chart.Rmd @@ -109,7 +109,7 @@ fig ``` ### Subplots -In order to create sunburst chart subplots, we use the [domain](https://plot.ly/r/reference/#sunburst-domain) attribute and the layout [grid](https://plot.ly/r/reference/#layout-grid) attribute. +In order to create sunburst chart subplots, we use the [domain](https://plotly.com/r/reference/#sunburst-domain) attribute and the layout [grid](https://plotly.com/r/reference/#layout-grid) attribute. ```{r} library(plotly) @@ -149,4 +149,4 @@ fig #Reference -See [https://plot.ly/r/reference/#sunburst](https://plot.ly/r/reference/#sunburst) for more information and chart attribute options! +See [https://plotly.com/r/reference/#sunburst](https://plotly.com/r/reference/#sunburst) for more information and chart attribute options! diff --git a/r/2019-04-16-isosurface.Rmd b/r/2019-04-16-isosurface.Rmd index d6ab68d0..a45c3334 100644 --- a/r/2019-04-16-isosurface.Rmd +++ b/r/2019-04-16-isosurface.Rmd @@ -120,4 +120,4 @@ fig #### Reference -See our [reference page](https://plot.ly/r/reference/) for more information and chart attribute options!. \ No newline at end of file +See our [reference page](https://plotly.com/r/reference/) for more information and chart attribute options!. \ No newline at end of file diff --git a/r/2019-05-03-waterfall-charts.Rmd b/r/2019-05-03-waterfall-charts.Rmd index 1f1e7cb0..f66902a9 100644 --- a/r/2019-05-03-waterfall-charts.Rmd +++ b/r/2019-05-03-waterfall-charts.Rmd @@ -43,7 +43,7 @@ fig ### Setting Marker Size and Color -This example uses [decreasing, increasing, and total attributes](https://plot.ly/r/reference/#waterfall-decreasing-marker-line-color) to customize the bars. +This example uses [decreasing, increasing, and total attributes](https://plotly.com/r/reference/#waterfall-decreasing-marker-line-color) to customize the bars. ```{r} library(plotly) diff --git a/r/2019-09-17-funnel-charts.Rmd b/r/2019-09-17-funnel-charts.Rmd index 3f025515..805144d7 100644 --- a/r/2019-09-17-funnel-charts.Rmd +++ b/r/2019-09-17-funnel-charts.Rmd @@ -41,7 +41,7 @@ fig ### Setting Marker Size and Color -This example uses [textposition](https://plot.ly/python/reference/#scatter-textposition) and [textinfo](https://plot.ly/python/reference/#funnel-textinfo) to determine information apears on the graph, and shows how to customize the bars. +This example uses [textposition](https://plotly.com/python/reference/#scatter-textposition) and [textinfo](https://plotly.com/python/reference/#funnel-textinfo) to determine information apears on the graph, and shows how to customize the bars. ```{r} # Need to install plotly from Github to get funnel plots @@ -184,4 +184,4 @@ fig #Reference -See [https://plot.ly/r/reference/#funnel](https://plot.ly/r/reference/#funnel) and [https://plot.ly/r/reference/#funnelarea](https://plot.ly/r/reference/#funnelarea) for more information and chart attribute options! +See [https://plotly.com/r/reference/#funnel](https://plotly.com/r/reference/#funnel) and [https://plotly.com/r/reference/#funnelarea](https://plotly.com/r/reference/#funnelarea) for more information and chart attribute options! diff --git a/r/2019-09-20-filled-area-on-mapbox.Rmd b/r/2019-09-20-filled-area-on-mapbox.Rmd index ee896e16..65baad8d 100644 --- a/r/2019-09-20-filled-area-on-mapbox.Rmd +++ b/r/2019-09-20-filled-area-on-mapbox.Rmd @@ -24,9 +24,9 @@ To plot on Mapbox maps with Plotly you *may* need a Mapbox account and a public There are three different ways to show an area in a mapbox:
    -
  1. Use [Scattermapbox](https://plot.ly/r/reference/#scattermapbox) trace and set [fill](https://plot.ly/r/reference/#scattermapbox-fill) attribute to 'toself'
  2. -
  3. Use [Scattermapbox](https://plot.ly/r/reference/#scattermapbox) trace and define the corresponding geojson
  4. -
  5. Use the new trace type: [Choroplethmapbox](https://plot.ly/r/mapbox-county-choropleth/) for mapbox cases, or [Choropleth](https://plot.ly/r/choropleth-maps/) trace for non-mapbox ones.
  6. +
  7. Use [Scattermapbox](https://plotly.com/r/reference/#scattermapbox) trace and set [fill](https://plotly.com/r/reference/#scattermapbox-fill) attribute to 'toself'
  8. +
  9. Use [Scattermapbox](https://plotly.com/r/reference/#scattermapbox) trace and define the corresponding geojson
  10. +
  11. Use the new trace type: [Choroplethmapbox](https://plotly.com/r/mapbox-county-choropleth/) for mapbox cases, or [Choropleth](https://plotly.com/r/choropleth-maps/) trace for non-mapbox ones.
The following example uses the `Scattermapbox` trace and sets `fill = 'toself'` @@ -54,7 +54,7 @@ fig ### Provide Gaps on Map -The following example shows how to use missing values in your data to provide gap in your graph. To ignore the gap on your plot, take benefit of [connectorgaps](https://plot.ly/r/reference/#scattermapbox-connectgaps) attribute. +The following example shows how to use missing values in your data to provide gap in your graph. To ignore the gap on your plot, take benefit of [connectorgaps](https://plotly.com/r/reference/#scattermapbox-connectgaps) attribute. ```{r} library(plotly) @@ -131,4 +131,4 @@ fig #Reference -See [https://plot.ly/r/reference/#scattermapbox](https://plot.ly/r/reference/#scattermapbox) for more information and options! \ No newline at end of file +See [https://plotly.com/r/reference/#scattermapbox](https://plotly.com/r/reference/#scattermapbox) for more information and options! \ No newline at end of file diff --git a/r/2019-09-20-mapbox-layers.Rmd b/r/2019-09-20-mapbox-layers.Rmd index f57674e7..b6882916 100644 --- a/r/2019-09-20-mapbox-layers.Rmd +++ b/r/2019-09-20-mapbox-layers.Rmd @@ -179,4 +179,4 @@ fig #Reference -See [https://plot.ly/r/reference/#scattermapbox](https://plot.ly/r/reference/#scattermapbox) for more information and options! +See [https://plotly.com/r/reference/#scattermapbox](https://plotly.com/r/reference/#scattermapbox) for more information and options! diff --git a/r/2019-09-23-mapbox-density.Rmd b/r/2019-09-23-mapbox-density.Rmd index 2c110145..f6965442 100644 --- a/r/2019-09-23-mapbox-density.Rmd +++ b/r/2019-09-23-mapbox-density.Rmd @@ -47,4 +47,4 @@ fig #Reference -See [https://plot.ly/r/reference/#densitymapbox](https://plot.ly/r/reference/#densitymapbox) for more information and options! \ No newline at end of file +See [https://plotly.com/r/reference/#densitymapbox](https://plotly.com/r/reference/#densitymapbox) for more information and options! \ No newline at end of file diff --git a/r/2019-09-26-bullet-charts.Rmd b/r/2019-09-26-bullet-charts.Rmd index c4a49a15..39db2960 100644 --- a/r/2019-09-26-bullet-charts.Rmd +++ b/r/2019-09-26-bullet-charts.Rmd @@ -17,8 +17,8 @@ knitr::opts_chunk$set(message = FALSE, warning=FALSE) ``` ### Basic Bullet Charts - Stephen Few's Bullet Chart was invented to replace dashboard [gauges](https://plot.ly/r/gauge-charts/) and meters, combining both types of charts into simple bar charts with qualitative bars (steps), quantitative bar (bar) and performance line (threshold); all into one simple layout. - Steps typically are broken into several values, which are defined with an array. The bar represent the actual value that a particular variable reached, and the threshold usually indicate a goal point relative to the value achieved by the bar. See [indicator page](https://plot.ly/r/gauge-charts/) for more detail. + Stephen Few's Bullet Chart was invented to replace dashboard [gauges](https://plotly.com/r/gauge-charts/) and meters, combining both types of charts into simple bar charts with qualitative bars (steps), quantitative bar (bar) and performance line (threshold); all into one simple layout. + Steps typically are broken into several values, which are defined with an array. The bar represent the actual value that a particular variable reached, and the threshold usually indicate a goal point relative to the value achieved by the bar. See [indicator page](https://plotly.com/r/gauge-charts/) for more detail. ```{r} library(plotly) @@ -69,7 +69,7 @@ fig ### Custom Bullet Chart -The following example shows how to customize your charts. For more information about all possible options check our [reference page](https://plot.ly/r/reference/#indicator). +The following example shows how to customize your charts. For more information about all possible options check our [reference page](https://plotly.com/r/reference/#indicator). ```{r} library(plotly) @@ -168,4 +168,4 @@ fig #Reference -See [https://plot.ly/r/reference/#indicator](https://plot.ly/r/reference/#indicator) for more information and chart attribute options! +See [https://plotly.com/r/reference/#indicator](https://plotly.com/r/reference/#indicator) for more information and chart attribute options! diff --git a/r/2019-09-26-gauge-charts.Rmd b/r/2019-09-26-gauge-charts.Rmd index be5ced76..8d51115d 100644 --- a/r/2019-09-26-gauge-charts.Rmd +++ b/r/2019-09-26-gauge-charts.Rmd @@ -22,7 +22,7 @@ knitr::opts_chunk$set(message = FALSE, warning=FALSE) The bar shows the target value, and the shading represents the progress toward that goal. Gauge charts, known as speedometer charts as well. This chart type is usually used to illustrate key business indicators. - The example below displays a basic gauge chart with default attributes. For more information about different added attributes check [indicator](https://plot.ly/r/indicator/) tutorial. + The example below displays a basic gauge chart with default attributes. For more information about different added attributes check [indicator](https://plotly.com/r/indicator/) tutorial. ```{r} library(plotly) @@ -69,7 +69,7 @@ fig ``` ### Custom Gauge Chart -The following example shows how to style your gauge charts. For more information about all possible options check our [reference page](https://plot.ly/r/reference/#indicator). +The following example shows how to style your gauge charts. For more information about all possible options check our [reference page](https://plotly.com/r/reference/#indicator). ```{r} library(plotly) @@ -104,4 +104,4 @@ fig #Reference -See [https://plot.ly/r/reference/#indicator](https://plot.ly/r/reference/#indicator) for more information and chart attribute options! +See [https://plotly.com/r/reference/#indicator](https://plotly.com/r/reference/#indicator) for more information and chart attribute options! diff --git a/r/2019-09-27-lines-on-mapbox.Rmd b/r/2019-09-27-lines-on-mapbox.Rmd index 79b855b3..8956a9d6 100644 --- a/r/2019-09-27-lines-on-mapbox.Rmd +++ b/r/2019-09-27-lines-on-mapbox.Rmd @@ -22,7 +22,7 @@ To plot on Mapbox maps with Plotly you *may* need a Mapbox account and a public ### Lines on Mapbox maps using "Scattermapbox" traces -To draw a line on your map, you either can use [Scattermapbox](https://plot.ly/r/reference/#scattermapbox) or [scattergeo](https://plot.ly/r/reference/#scattergeo) trace type in plotly. This example uses scattermapbox and defines the drawing [mode](https://plot.ly/python/reference/#scattermapbox-mode) to the combination of markers and line. +To draw a line on your map, you either can use [Scattermapbox](https://plotly.com/r/reference/#scattermapbox) or [scattergeo](https://plotly.com/r/reference/#scattergeo) trace type in plotly. This example uses scattermapbox and defines the drawing [mode](https://plotly.com/python/reference/#scattermapbox-mode) to the combination of markers and line. ```{r} library(plotly) @@ -52,4 +52,4 @@ fig ``` #Reference -See [https://plot.ly/r/reference/#scattermapbox](https://plot.ly/r/reference/#scattermapbox) for more information and options! \ No newline at end of file +See [https://plotly.com/r/reference/#scattermapbox](https://plotly.com/r/reference/#scattermapbox) for more information and options! \ No newline at end of file diff --git a/r/2020-01-20-static-image-export.Rmd b/r/2020-01-20-static-image-export.Rmd index 00b0f00d..b6156682 100644 --- a/r/2020-01-20-static-image-export.Rmd +++ b/r/2020-01-20-static-image-export.Rmd @@ -18,7 +18,7 @@ knitr::opts_chunk$set(message = FALSE, warning=FALSE) ``` ### Supported File Formats -With the `plotly` R package, you can export graphs you create as static images in the `.png`, `.jpg`/`.jpeg`, `.eps`, `.svg`, and/or `.pdf` formats using[Orca](https://github.com/plotly/orca), an open source command line tool for generating static images of graphs created with [Plotly's graphing libraries](https://plot.ly/graphing-libraries). +With the `plotly` R package, you can export graphs you create as static images in the `.png`, `.jpg`/`.jpeg`, `.eps`, `.svg`, and/or `.pdf` formats using[Orca](https://github.com/plotly/orca), an open source command line tool for generating static images of graphs created with [Plotly's graphing libraries](https://plotly.com/graphing-libraries). **Note:** It is important to be aware that R graphs containing WebGL-based traces (i.e. of type `scattergl`, `heatmapgl`, `contourgl`, `scatter3d`, `surface`, `mesh3d`, `scatterpolargl`, `cone`, `streamtube`, `splom`, and/or `parcoords`) will include encapsulated rasters instead of vectors for some parts of the image if they are exported as static images in a vector format like `.eps`, `.svg`, and/or `.pdf`. diff --git a/r/2020-01-30-choropleth-rmapbox.Rmd b/r/2020-01-30-choropleth-rmapbox.Rmd index b2849e89..b03509c1 100644 --- a/r/2020-01-30-choropleth-rmapbox.Rmd +++ b/r/2020-01-30-choropleth-rmapbox.Rmd @@ -129,4 +129,4 @@ fig ``` #Reference -See [https://plot.ly/r/reference/#scattermapbox](https://plot.ly/r/reference/#choroplethmapbox) for more information and options! \ No newline at end of file +See [https://plotly.com/r/reference/#scattermapbox](https://plotly.com/r/reference/#choroplethmapbox) for more information and options! \ No newline at end of file diff --git a/r/2020-02-25-imshow.Rmd b/r/2020-02-25-imshow.Rmd index bf17e07e..6d7801b2 100644 --- a/r/2020-02-25-imshow.Rmd +++ b/r/2020-02-25-imshow.Rmd @@ -15,11 +15,11 @@ thumbnail: thumbnail/imshow.jpg ```{r, echo = FALSE, message=FALSE} knitr::opts_chunk$set(message = FALSE, warning=FALSE) ``` -This tutorial shows how to display and explore image data. If you would like instead a logo or static image, use `layout.Image` as explained [here](https://plot.ly/r/logos/). +This tutorial shows how to display and explore image data. If you would like instead a logo or static image, use `layout.Image` as explained [here](https://plotly.com/r/logos/). ### Display RGB Image Data with Image Trace -Note that `Image` trace only accepts multichannel images. For single images, use [`Heatmap`](https://plot.ly/r/heatmaps/). `Image` trace is different from the `layout.Image` class, which can be used for adding background images or logos to figures. +Note that `Image` trace only accepts multichannel images. For single images, use [`Heatmap`](https://plotly.com/r/heatmaps/). `Image` trace is different from the `layout.Image` class, which can be used for adding background images or logos to figures. ```{r} library(plotly) @@ -44,7 +44,7 @@ fig ### Define the data range covered by the color range with zmin and zmax The data range and color range are mapped together using the parameters `zmin` and `zmax`, which correspond respectively to the data values mapped to black `[0, 0, 0]` and white `[255, 255, 255]`. -The default value of `zmin` and [zmax](https://plot.ly/r/reference/#image-zmax) depends on the `colormodal` value. In this example `colormodel is "rgb"`(by default), so the default value of `zmin is [0, 0, 0]` and `zmax is [250, 250, 250]`. +The default value of `zmin` and [zmax](https://plotly.com/r/reference/#image-zmax) depends on the `colormodal` value. In this example `colormodel is "rgb"`(by default), so the default value of `zmin is [0, 0, 0]` and `zmax is [250, 250, 250]`. ```{r} library(plotly) @@ -84,4 +84,4 @@ fig <- fig %>% add_trace( fig ``` ### Reference -See [https://plot.ly/r/reference/#image](https://plot.ly/r/reference/#area) for more information and chart attribute options! +See [https://plotly.com/r/reference/#image](https://plotly.com/r/reference/#area) for more information and chart attribute options! diff --git a/r/2020-02-25-treemap.Rmd b/r/2020-02-25-treemap.Rmd index 62b442a7..0375a4be 100644 --- a/r/2020-02-25-treemap.Rmd +++ b/r/2020-02-25-treemap.Rmd @@ -15,7 +15,7 @@ output: ```{r, echo = FALSE, message=FALSE} knitr::opts_chunk$set(message = FALSE, warning = FALSE) ``` -[Treemap charts](https://en.wikipedia.org/wiki/Treemapping) visualize hierarchical data using nested rectangles. Just like with a [sunburst chart](https://plot.ly/r/sunburst-charts/), the hierarchy of a treemap is defined by using the [labels](https://plot.ly/r/reference/#treemap-labels), and [parents](https://plot.ly/r/reference/#treemap-parents) attributes. +[Treemap charts](https://en.wikipedia.org/wiki/Treemapping) visualize hierarchical data using nested rectangles. Just like with a [sunburst chart](https://plotly.com/r/sunburst-charts/), the hierarchy of a treemap is defined by using the [labels](https://plotly.com/r/reference/#treemap-labels), and [parents](https://plotly.com/r/reference/#treemap-parents) attributes. Treemaps created with Plotly's R graphing library are interactive by default! Click on individual sectors of the treemap chart to zoom in/out of that sector and to display a hierarchical pathbar at the top of the chart. You can use this pathbar to zoom in/out of chart sectors instead of clicking on the sectors directly. @@ -35,10 +35,10 @@ fig You can customize several attributes of the treemaps you create with Plotly for R, including: -1. [values](https://plot.ly/r/reference/#treemap-values): a list of the values assigned to each chart sector. -2. [textinfo](https://plot.ly/r/reference/#treemap-textinfo): determines the textual information that will appear in each chart sector. Valid values are `text`, `value`, `current path`, `percent root`, `percent entry`, `percent parent`, or any combination of the preceding. -3. [pathbar](https://plot.ly/r/reference/#treemap-pathbar): determines whether the pathbar is visible when users zoom into chart sectors. -4. [branchvalues](https://plot.ly/r/reference/#treemap-branchvalues): the method that has been used to calculate the `values` of chart sectors that have desendants. Valid values for this attribute are `total` and `remainder`; the default value is `remainder`. +1. [values](https://plotly.com/r/reference/#treemap-values): a list of the values assigned to each chart sector. +2. [textinfo](https://plotly.com/r/reference/#treemap-textinfo): determines the textual information that will appear in each chart sector. Valid values are `text`, `value`, `current path`, `percent root`, `percent entry`, `percent parent`, or any combination of the preceding. +3. [pathbar](https://plotly.com/r/reference/#treemap-pathbar): determines whether the pathbar is visible when users zoom into chart sectors. +4. [branchvalues](https://plotly.com/r/reference/#treemap-branchvalues): the method that has been used to calculate the `values` of chart sectors that have desendants. Valid values for this attribute are `total` and `remainder`; the default value is `remainder`. - When set to `remainder`, items in the `values` attribute which correspond to the root of the chart and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves. - When set to `total`, a brach's value is taken to be equal to the sum of the `values` of each chart sector that is a descendant of that branch. This behavior is demonstrated in the second trace in the example figure below- the value of the `Eva` branch is 65, which is the sum of the values of each chart sector that is a descendant of that branch (14 + 12 + 10 + 2 + 6 + 6 + 1 + 4). @@ -80,9 +80,9 @@ fig There are three different attributes you can use to change the color of the sectors of treemaps you have created with Plotly for R: -1. [marker.colors](https://plot.ly/r/reference/#treemap-marker-colors) -2. [marker.colorscale](https://plot.ly/r/reference/#treemap-colorscale) -3. [colorway](https://plot.ly/r/reference/#treemap-colorway), +1. [marker.colors](https://plotly.com/r/reference/#treemap-marker-colors) +2. [marker.colorscale](https://plotly.com/r/reference/#treemap-colorscale) +3. [colorway](https://plotly.com/r/reference/#treemap-colorway), The following examples show how to use each attribute. To use `marker.colors`, pass a list of valid CSS colors or hexadecimal color codes. @@ -138,7 +138,7 @@ fig ``` ### Nested Layers in Treemap -The following example demonstrates how treemap charts can be used to reveal insights into the structure of hierarchical data that includes information about layers and grouping. The [maxdepth](https://plot.ly/r/reference/#treemap-maxdepth) attribute can be used to control how many levels of data are rendered; the default value of `-1` renders all the levels in the hierarchy. +The following example demonstrates how treemap charts can be used to reveal insights into the structure of hierarchical data that includes information about layers and grouping. The [maxdepth](https://plotly.com/r/reference/#treemap-maxdepth) attribute can be used to control how many levels of data are rendered; the default value of `-1` renders all the levels in the hierarchy. ```{r} library(plotly) @@ -183,4 +183,4 @@ fig #Reference -See [https://plot.ly/r/reference/#treemap](https://plot.ly/r/reference/#treemap) for more information and chart attribute options! +See [https://plotly.com/r/reference/#treemap](https://plotly.com/r/reference/#treemap) for more information and chart attribute options!