Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
143 commits
Select commit Hold shift + click to select a range
9fe33eb
Start v4.9.4 release candidate (#1959)
cpsievert Jun 8, 2021
771d584
Add crosstalk mapping to computed_mapping (not mapping) when present …
cpsievert Jun 17, 2021
bb98fef
v4.9.4.1 release candidate (#1965)
cpsievert Jun 21, 2021
6f3e1f8
use dev version
cpsievert Jun 21, 2021
e2afc47
Upgrade to plotly.js 2.0 (#1967)
cpsievert Jun 22, 2021
1093705
Update subplots.R (#1974)
abhilashlakshman Jul 14, 2021
bdfdc4b
Better positioning of facet axis annotations (#1975)
cpsievert Jul 14, 2021
278b670
Add kaleido() for static image exporting (#1971)
cpsievert Jul 14, 2021
079ac68
Close #1970: revert plotly.js 2.0 change in default modebar buttons
cpsievert Jul 14, 2021
2e389a6
Add save_image(), a convenience wrapper around kaleido()$transform() …
cpsievert Jul 18, 2021
a938bf5
Upgrade to plotly.js v2.2.1 (#1982)
cpsievert Jul 18, 2021
5b83c64
Use Plotly.react() to redraw in Shiny if layout.transition is populat…
cpsievert Sep 20, 2021
6186822
Update to plotly.js v2.5.1 (#2002)
cpsievert Sep 21, 2021
f58d4ba
Closes #2031. ggplot internaly convert `color` to `colour`
moutikabdessabour Sep 28, 2021
cdac45f
Update README.md
jackparmer Oct 1, 2021
eb96bc2
update baselines
cpsievert Oct 8, 2021
1889ca6
update URLs
cpsievert Oct 8, 2021
c35a44e
add_area() now uses barpolar instead of area (#2041)
cpsievert Oct 8, 2021
6dae230
Closes #1872. Implemented to_basic for `geom_function`
moutikabdessabour Oct 8, 2021
b137432
4.10.0 release
cpsievert Oct 8, 2021
a628137
Added unit tests. And ran tests using
moutikabdessabour Oct 8, 2021
1a02fe9
Conformed with carson's review
moutikabdessabour Oct 9, 2021
c89d84f
Reverted the deletion of _snaps
moutikabdessabour Oct 9, 2021
6e1f979
Added test to check whether the fix works or not.
moutikabdessabour Oct 9, 2021
9bddfc2
Added test to check whether the fix works or not.
moutikabdessabour Oct 9, 2021
94fa7da
Merge pull request #2034 from moutikabdessabour/ggplotly_color_aes_fix
moutikabdessabour Oct 14, 2021
e3043ae
Merge pull request #2042 from moutikabdessabour/implement_geomFunction
moutikabdessabour Oct 14, 2021
2ef4a3f
use dev versioning
cpsievert Oct 14, 2021
4d957ab
Fix "partial argument match" warnings (#1977)
bersbersbers Oct 13, 2021
4f66dc3
No partial-argument-match warning in ggplotly
bersbersbers Oct 13, 2021
dfdb6ff
Update NEWS.md
bersbersbers Oct 15, 2021
4bb1e44
Merge pull request #2046 from bersbersbers/partial-argument-match-war…
moutikabdessabour Oct 18, 2021
aeaecd6
Solved the LaTeX2exp error. Closes #2027 (#2030)
moutikabdessabour Nov 1, 2021
15807cf
Revert "Solved the LaTeX2exp error. Closes #2027 (#2030)"
cpsievert Nov 1, 2021
35f9039
Add ggalluvial support (#2061)
cpsievert Nov 2, 2021
aa9dcb7
Fix ordering of lines in stat_ecdf() (#2065)
cpsievert Nov 2, 2021
df35a7d
Handle geom_tile() with no fill aesthetic (#2063)
cpsievert Nov 2, 2021
49215db
More careful joining of group columns (#2064)
cpsievert Nov 2, 2021
555a443
Avoid with() to better account for missing tickvals/ticktext (#2062)
cpsievert Nov 2, 2021
58bf7b7
Test discrete-ness of fill after statistics have been calculated (#2066)
cpsievert Nov 2, 2021
50acd97
Announce snapshot files when visual testing isn't enabled so they won…
cpsievert Nov 2, 2021
4642714
Respect guide(aes = 'none') when constructing legend entries (#2067)
cpsievert Nov 2, 2021
3d49fbc
Add 'plotly_selecting' to acceptable 'on' events (#1280)
cpsievert Nov 2, 2021
e6cc271
Use faster versions of system.file()/packageVersion()/is_installed() …
cpsievert Nov 17, 2021
3c3d749
Bump plotly.js to 2.11.1 (#2096)
cpsievert Mar 26, 2022
1d11db5
approve new visual baselines
cpsievert Mar 26, 2022
0661fb2
Use rlang::local_options() in test
cpsievert Mar 26, 2022
2a19776
new shinytest baselines; avoid rlang altogether
cpsievert Mar 26, 2022
01582b8
plotly.js fix bug when crosstalk filter keys are null (#2087)
casperhart Apr 24, 2022
a4ed547
transition `tidyr::gather_` -> `tidyr::pivot_longer` (#2125)
simonpcouch Apr 27, 2022
5583518
Replace `is.na` with `rlang::is_na` in `map_color()` (#2131)
mojaveazure May 4, 2022
a4b1581
roxygenize
cpsievert May 4, 2022
9c0ff38
Follow up to #2125: fix copy/paste error
cpsievert Sep 19, 2022
82ed8c6
Get visual tests running (hopefully) by using workaround for reticula…
cpsievert Sep 19, 2022
8c11d9d
Approve new visual baselines
cpsievert Sep 19, 2022
39a0055
Update subplots.R (#2169)
robayo Sep 19, 2022
32567a0
Support nativeRaster objects in annotation_raster() and raster2uri() …
zeehio Sep 20, 2022
3eed83e
Fix #2150 (#2194)
MLopez-Ibanez Oct 18, 2022
2062096
plotlyOutput()'s width and height now default to NULL (and default CS…
cpsievert Oct 19, 2022
f923464
devtools::document()
cpsievert Oct 19, 2022
c95a20f
update news
cpsievert Oct 19, 2022
2db78b7
Add fill argument to `plotlyOutput()` (#2198)
cpsievert Oct 25, 2022
df22f08
Fix typo in test
cpsievert Nov 2, 2022
b0983fe
devtools::document()
cpsievert Nov 2, 2022
7c7b753
Approve new visual baselines
cpsievert Nov 2, 2022
1513d09
Approve new visual baselines
cpsievert Nov 2, 2022
200b0e2
Skip warnPartialMatchArgs test on R 3.5
cpsievert Nov 2, 2022
b6a7ce3
Allow a visual test to pass if it's bitmap version is equivalent
cpsievert Nov 2, 2022
cca0369
Add rsvg to suggests
cpsievert Nov 2, 2022
51d276f
Fix README badges
cpsievert Nov 2, 2022
10e0100
Accommodate breaking changes in ggplot2 3.4.0 (#2200)
cpsievert Nov 4, 2022
6183de6
v4.10.1 release candidate (#2202)
cpsievert Nov 7, 2022
f9d6e43
Start new version
cpsievert Nov 7, 2022
a69ba8b
skip test on pre-3.4.0 ggplot2 (#2204)
MichaelChirico Nov 14, 2022
3a33b1a
Make ribbon_dat() a no-op if there is no data (#2209)
cpsievert Nov 28, 2022
8f5be40
Allow highlight() selectize to contain selectize.js options (#2217)
cpsievert Dec 30, 2022
2211ab7
Trim GHA workflow; Test on more platforms (#2221)
schloerke Jan 3, 2023
7fb95ed
Provide a default if the fatten param is missing in `to_basic.GeomCro…
cpsievert Jan 4, 2023
e874b86
Fix kaleido command bug (#2228)
quinten-goens Feb 13, 2023
2da6460
Update news
cpsievert Feb 13, 2023
3378cff
Fix bug: ggplotly() no longer removes legends (#2234)
trekonom Feb 13, 2023
b9b3ea5
Update news
cpsievert Feb 13, 2023
9ee5480
Update visual tests
cpsievert Feb 13, 2023
4594408
Handle recent changes to ggplot2's `plot_build()` logic (#2262)
cpsievert May 5, 2023
2f08cf8
Follow up to #2262: add a clarifying comment; update news
cpsievert May 5, 2023
3e6099e
Relocate tidyverse/ggplot2 remote to `Config/Needs/check` (#2268)
schloerke May 19, 2023
7c6e6d8
v4.10.2 release candidate (#2271)
cpsievert Jun 3, 2023
3f1030b
Start new version
cpsievert Jun 3, 2023
bcf2a21
Bug fix: allow empty `Vlines` and `Hlines` as `ggplot2` does (#2252)
dereckmezquita Jun 3, 2023
0469eab
Cleanup NEWS
cpsievert Jun 3, 2023
50c50ea
Remove dependencies on maptools and rgeos (#2297)
olivroy Oct 5, 2023
a1c3089
Fix rstudio windows warning (#2300)
zeehio Oct 5, 2023
270d20e
Fix geom2trace.geompoint incorrect filling (closes #2298) (#2299)
zeehio Oct 5, 2023
22d715d
Fixes/workaround for upcoming (> v3.4.3) ggplot2 release (#2301)
cpsievert Oct 11, 2023
3c158b1
v4.10.3 release candidate (#2309)
cpsievert Oct 22, 2023
ee22264
Start new version
cpsievert Oct 22, 2023
d76e87e
Updates for recent changes to ggplot2 ggproto guide API (#2315)
cpsievert Nov 10, 2023
0445ed9
v4.10.4 release candidate (#2328)
cpsievert Jan 14, 2024
57f016a
Start new version
cpsievert Jan 14, 2024
16261c3
Update README.md by removing footer (#2335)
noamross Jan 18, 2024
dc6455f
Isolate `names(...)` in `event_data()` to prevent spurious updates (#…
dvg-p4 Apr 27, 2024
44499f2
Add support for ggridges (#2314)
AdroMine May 8, 2024
ed106db
Fix roxygen/Rd issue
cpsievert Jun 3, 2024
665504a
Fixes for the development version of ggplot2 (> v3.5.2); migrate to s…
cpsievert Jun 3, 2024
432c108
Close #2175. Improve installation docs and warnings/errors surroundin…
cpsievert Jun 3, 2024
963b914
Update README.md with "maintained by community" badge
gvwilson Jun 7, 2024
3cf17c0
Exclude .git directory and also do not persist Git credentials (#2372)
mike-sol Jul 25, 2024
a7a0652
Compatibility with incoming ggplot2 changes (#2368)
teunbrand Sep 3, 2024
0454f38
Update visual baselines; update news
cpsievert Sep 3, 2024
8edfb34
Add implicit Suggests 's2' explicitly (#2351)
MichaelChirico Sep 4, 2024
cc49ee5
updating year(s) in license (#2393)
gvwilson Sep 20, 2024
ffae983
Add code of conduct (#2412)
gvwilson Dec 13, 2024
aa619dc
include boxmode as valid attr (#2396)
oliver-gray Dec 16, 2024
3bd4448
Prevent RColorBrewer::brewer.pal warning (#1999)
s-fleck May 19, 2025
57fe5c0
Update news
cpsievert May 19, 2025
3b5f6e6
fix: address various check/test/CI issues (#2441)
cpsievert Jun 5, 2025
7a0176d
Updates in support of ggplot2 v4.0.0 (#2442)
cpsievert Jun 5, 2025
e04eb4f
v4.11.0 release candidate (#2443)
cpsievert Jun 19, 2025
7879804
Support renderValue within iframe
Dec 12, 2018
7c75af8
Add yaml for auto-P.R./fork updating; RS-2202
Nov 21, 2019
8eae641
Add back missing layout attribute
chschan May 27, 2021
d06ecb9
Require widget to be attached to dom when calling resize
JustinCCYap Sep 7, 2021
c1826e2
Pass element instead of ID
JustinCCYap Sep 7, 2021
ce19f9d
Remove condition
JustinCCYap Sep 7, 2021
ad82656
VIS-992: add test, use rhtmlBuildUtils (#15)
JustinCCYap Sep 9, 2021
1375ad4
VIS-933: add rhtmlwidget-status attribute (#16)
JustinCCYap Oct 6, 2021
74af4f1
VIS-1064: fix PPT exporting issue (#17)
JustinCCYap Mar 24, 2022
8bbd968
DS-4804 Remove the QTable class from plotly input data elements (#19)
jrwishart Jun 27, 2023
f1aa244
DS-4804 Fixup and add unit test
jrwishart Jul 14, 2023
d4a9a61
DS-4804 Use CircleCI instead of actions
jrwishart Jul 14, 2023
746c595
DS-4804 Prod CCI
jrwishart Jul 14, 2023
32ffd8d
DS-4804 Try viz CCI config
jrwishart Jul 14, 2023
3870cde
DS-4804 don't split job
jrwishart Jul 14, 2023
58ba959
DS-4804 Remove CCI for now
jrwishart Jul 14, 2023
aee4d91
DS-4804 Real fix this time
jrwishart Jul 14, 2023
86ff33f
DS-4804 Allow test to work on earlier R versions
jrwishart Jul 14, 2023
d6c36ce
DS-4923 Only check QTable class (#21)
jrwishart Aug 4, 2023
41093a1
FS2-2955: Update to use plotly 2.35.2 (#22)
chschan Nov 28, 2024
78a2a20
DPI-2832 Pack plotly in nix
brucetan-displayr Mar 4, 2025
dfd650e
update format
brucetan-displayr Mar 4, 2025
aec90fb
Call Plotly.newPlot instead of Plotly.plot
chschan Sep 28, 2025
c93d0b2
Fix QTable test
chschan Sep 28, 2025
e920751
Merge branch 'master' into cc-rebase-plotly4.11
chschan Sep 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
43 changes: 43 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at accounts@plot.ly. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.4, available at [http://contributor-covenant.org/version/1/4](http://contributor-covenant.org/version/1/4/), and may also be found online at <https://community.plotly.com/pub/code-of-conduct>.
23 changes: 15 additions & 8 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: plotly
Title: Create Interactive Web Graphics via 'plotly.js'
Version: 4.10.0.9002
Version: 4.11.0
Authors@R: c(person("Carson", "Sievert", role = c("aut", "cre"),
email = "cpsievert1@gmail.com", comment = c(ORCID = "0000-0002-4958-2844")),
person("Chris", "Parmer", role = "aut",
Expand Down Expand Up @@ -42,7 +42,7 @@ Imports:
vctrs,
tibble,
lazyeval (>= 0.2.0),
rlang (>= 0.4.10),
rlang (>= 1.0.0),
crosstalk,
purrr,
data.table,
Expand All @@ -56,28 +56,35 @@ Suggests:
ggalluvial,
testthat,
knitr,
devtools,
shiny (>= 1.1.0),
shinytest (>= 1.3.0),
shinytest2,
curl,
rmarkdown,
Cairo,
broom,
webshot,
listviewer,
dendextend,
maptools,
rgeos,
sf,
png,
IRdisplay,
processx,
plotlyGeoAssets,
forcats,
withr,
palmerpenguins,
rversions,
reticulate
reticulate,
rsvg,
ggridges
LazyData: true
RoxygenNote: 7.1.2
RoxygenNote: 7.3.2
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
Config/Needs/check:
tidyverse/ggplot2,
ggobi/GGally,
rcmdcheck,
devtools,
reshape2,
s2
4 changes: 2 additions & 2 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)
MIT License

Copyright (c) 2017 Plotly Technologies Inc
Copyright (c) 2017-2024 Plotly Technologies Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
13 changes: 13 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ S3method(geom2trace,GeomErrorbarh)
S3method(geom2trace,GeomPath)
S3method(geom2trace,GeomPoint)
S3method(geom2trace,GeomPolygon)
S3method(geom2trace,GeomRidgelineGradient)
S3method(geom2trace,GeomText)
S3method(geom2trace,GeomTile)
S3method(geom2trace,default)
Expand All @@ -26,6 +27,9 @@ S3method(highlight_key,plotly)
S3method(layout,matrix)
S3method(layout,plotly)
S3method(layout,shiny.tag.list)
S3method(linewidth_or_size,Geom)
S3method(linewidth_or_size,default)
S3method(linewidth_or_size,element)
S3method(plotly_build,"NULL")
S3method(plotly_build,gg)
S3method(plotly_build,list)
Expand All @@ -36,6 +40,9 @@ S3method(print,api_grid_local)
S3method(print,api_plot)
S3method(print,kaleidoScope)
S3method(print,plotly_data)
S3method(process,api_image)
S3method(process,api_plot)
S3method(process,default)
S3method(to_basic,GeomAbline)
S3method(to_basic,GeomAlluvium)
S3method(to_basic,GeomAnnotationMap)
Expand All @@ -46,6 +53,10 @@ S3method(to_basic,GeomContour)
S3method(to_basic,GeomCrossbar)
S3method(to_basic,GeomDensity)
S3method(to_basic,GeomDensity2d)
S3method(to_basic,GeomDensityLine)
S3method(to_basic,GeomDensityRidges)
S3method(to_basic,GeomDensityRidges2)
S3method(to_basic,GeomDensityRidgesGradient)
S3method(to_basic,GeomDotplot)
S3method(to_basic,GeomErrorbar)
S3method(to_basic,GeomErrorbarh)
Expand All @@ -62,6 +73,8 @@ S3method(to_basic,GeomRaster)
S3method(to_basic,GeomRasterAnn)
S3method(to_basic,GeomRect)
S3method(to_basic,GeomRibbon)
S3method(to_basic,GeomRidgeline)
S3method(to_basic,GeomRidgelineGradient)
S3method(to_basic,GeomRug)
S3method(to_basic,GeomSegment)
S3method(to_basic,GeomSf)
Expand Down
63 changes: 61 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,72 @@
# 4.10.0.9000
# plotly 4.11.0

## New features

* `ggplotly()` now supports the `{ggridges}` package. (#2314)

## Improvements

* Various updates to `ggplotly()` to better support recent versions of ggplot2. (#2315, #2368, #2442, thanks @teunbrand).

## Bug fixes

* Closed #2337: Creating a new `event_data()` handler no longer causes a spurious reactive update of existing `event_data()`s. (#2339)
* Closed #2376: Removes errant boxmode warning for grouped boxplot. (#2396)
* Closed #2392: Trivial warning about RColorBrewer minimal n value is no longer thrown (#1999)

# 4.10.4

## Improvements

* `ggplotly()` now works better with the development version of ggplot2 (> v3.4.4). (#2315)

# 4.10.3

## Improvements

* `ggplotly()` now works better with the development version of ggplot2 (> v3.4.3). (#2301)

## Bug fixes

* Closed #1947: `ggplotly()` now correctly handles `geom_vline`/`geom_hline` with empty data. Previously, if `geom_vline`/`geom_hline` was passed an empty data frame, it would result in an error. The plot is drawn even if no lines are found; this is the same behavior as `ggplot2`.

* Closed #1214: Do not warn in RStudio on Windows when scattergl is used. Recent RStudio versions can render scattergl correctly.

* Closed #2298: Fix fill assignment in geom_point when a single shape value was used with multiple fill and colour values mapped (@zeehio)

# 4.10.2

## New features

* Closed #2216: Additional selectize.js options can now be passed along to `highlight()`'s `selectize` argument. (#2217)

## Improvements

* Closed #2259: `ggplotly()` now provides better support for ggplot2 >v3.4.2. (#2262)

## Bug fixes

* Closed #2212: `ggplotly()` no longer silently drops legends that are customized through `ggplot2::guide_legend()`.
* Closed #2179: `save_image()` no longer needs `reticulate::py_run_string("import sys")` in order to run without error. (#2179)
* Closed #2218: `highlight(selectize = TRUE)` no longer yields an incorrect selectize.js result when there is a combination of crosstalk and non-crosstalk traces. (#2217)
* Closed #2208: `ggplotly()` no longer errors given a `geom_area()` with 1 or less data points (error introduced by new behavior in ggplot2 v3.4.0). (#2209)
* Closed #2220: `ggplotly()` no longer errors on `stat_summary(geom = "crossbar")`. (#2222)
* Closed #2212: `ggplotly()` no longer removes legends when setting guide properties via `guides(aes = guide_xxx(...))`.

# 4.10.1

## Changes to plotly.js

* This version of the R package upgrades the version of the underlying plotly.js library from v2.5.1 to v2.11.1. This includes many bug fixes and improvements. The [plotly.js release page](https://github.com/plotly/plotly.js/releases) has the full list of changes.

## New features

* `plotlyOutput()` gains a new `fill` parameter. When `TRUE` (the default), the widget's container element is allowed to grow/shrink to fit it's parent container so long as that parent is opinionated about its height and has been marked with `htmltools::bindFillRole(x, container = TRUE)`. (#2198)
* The primary motivation for this is to allow plots to grow/shrink by default [inside `bslib::card_body_fill()`](https://rstudio.github.io/bslib/articles/cards.html#responsive-sizing)
* `ggplotly()` now supports the `{ggalluvial}` package. (#2061, thanks @moutikabdessabour)
* `highlight()` now supports `on="plotly_selecting"`, enabling client-side linked brushing via mouse click+drag (no mouse-up event required, as with `on="plotly_selected"`). (#1280)
* `raster2uri()` supports nativeRaster objects. This enables nativeRaster support for
the `annotation_raster()` geom (#2174, @zeehio).

## Bug fixes

Expand Down Expand Up @@ -143,7 +202,7 @@ This is minor patch release with a few minor bug fixes and updates test expectat

## NEW FEATURES & IMPROVEMENTS

* Several new features and improvements related to accessing plotly.js events in shiny (learn more about them in this RStudio [webinar](https://www.rstudio.com/resources/webinars/accessing-and-responding-to-plotly-events-in-shiny/)):
* Several new features and improvements related to accessing plotly.js events in shiny (learn more about them in this RStudio [webinar](https://posit.co/resources/videos/accessing-and-responding-to-plotly-events-in-shiny/)):
* The `event` argument of the `event_data()` function now supports the following events: `plotly_selecting`, `plotly_brushed`, `plotly_brushing`, `plotly_restyle`, `plotly_legendclick`, `plotly_legenddoubleclick`, `plotly_clickannotation`, `plotly_afterplot`, `plotly_doubleclick`, `plotly_deselect`, `plotly_unhover`. For examples, see `plotly_example("shiny", "event_data")`, `plotly_example("shiny", "event_data_legends")`, and `plotly_example("shiny", "event_data_annotation")`,
* New `event_register()` and `event_unregister()` functions for declaring which events to transmit over the wire (i.e., from the browser to the shiny server). Events that are likely to have large overhead are not registered by default, so you'll need to register these: `plotly_selecting`, `plotly_unhover`, `plotly_restyle`, `plotly_legendclick`, and `plotly_legenddoubleclick`.
* A new `priority` argument. By setting `priority='event'`, the `event` is treated like a true event: any reactive expression using the `event` becomes invalidated (regardless of whether the input values has changed). For an example, see `plotly_example("shiny", "event_priority")`.
Expand Down
6 changes: 3 additions & 3 deletions R/add.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' @param p a plotly visualization
#' @param data a data frame.
#' @export
#' @examples
#' @examplesIf interactive() || !identical(.Platform$OS.type, "windows")
#'
#' plot_ly() %>% add_data(economics) %>% add_trace(x = ~date, y = ~pce)
add_data <- function(p, data = NULL) {
Expand Down Expand Up @@ -41,7 +41,7 @@ add_data <- function(p, data = NULL) {
#' @author Carson Sievert
#' @export
#' @rdname add_trace
#' @examples
#' @examplesIf interactive() || !identical(.Platform$OS.type, "windows")
#'
#' # the `plot_ly()` function initiates an object, and if no trace type
#' # is specified, it sets a sensible default
Expand Down Expand Up @@ -704,7 +704,7 @@ special_attrs <- function(trace) {
# #'
# #'
# #' @export
# #' @examples
# #' @examplesIf interactive() || !identical(.Platform$OS.type, "windows")
# #'
# #' x <- rnorm(10)
# #' plot_ly(x = ~x) %>%
Expand Down
4 changes: 1 addition & 3 deletions R/animate.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#' @rdname animation
#' @aliases animation
#' @author Carson Sievert
#' @examples
#' @examplesIf interactive() || !identical(.Platform$OS.type, "windows")
#'
#' df <- data.frame(
#' x = c(1, 2, 2, 1, 1, 2),
Expand Down Expand Up @@ -122,7 +122,6 @@ animation_opts_defaults <- function() {
}


#' @inheritParams animation_opts
#' @param hide remove the animation slider?
#' @param ... for `animation_slider`, attributes are passed to a special
#' layout.sliders object tied to the animation frames.
Expand All @@ -149,7 +148,6 @@ animation_slider <- function(p, hide = FALSE, ...) {
}


#' @inheritParams animation_slider
#' @param label a character string used for the animation button's label
#' @export
#' @rdname animation
Expand Down
5 changes: 1 addition & 4 deletions R/api_exports.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#' @author Carson Sievert
#' @references \url{https://api.plot.ly/v2}
#' @seealso [signup()]
#' @examples
#' @examplesIf interactive() || !identical(.Platform$OS.type, "windows")
#'
#' \dontrun{
#'
Expand Down Expand Up @@ -108,9 +108,6 @@
#'
#' }
#'


#' @rdname api
#' @export
api_create <- function(x = last_plot(), filename = NULL,
fileopt = c("overwrite", "new"),
Expand Down
4 changes: 2 additions & 2 deletions R/dev.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#' or a number specifying the number of spaces to indent. See [jsonlite::prettify].
#' @param ... other options passed onto [listviewer::jsonedit]
#' @export
#' @examples
#' @examplesIf interactive() || !identical(.Platform$OS.type, "windows")
#'
#' plotly_json(plot_ly())
#' plotly_json(plot_ly(), FALSE)
Expand All @@ -32,7 +32,7 @@ plotly_json <- function(p = last_plot(), jsonedit = interactive(), pretty = TRUE
#' @param jsonedit use `listviewer::jsonedit` to view the JSON?
#' @param ... other options passed onto `listviewer::jsonedit`
#' @export
#' @examples
#' @examplesIf interactive() || !identical(.Platform$OS.type, "windows")
#' s <- schema()
#'
#' # retrieve acceptable `layout.mapbox.style` values
Expand Down
4 changes: 2 additions & 2 deletions R/export.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#' Export a plotly graph to a static file
#'
#' This function is in the process of being deprecated (use [orca] instead).
#' This function is deprecated, use [save_image] instead.
#'
#' @details For SVG plots, a screenshot is taken via `webshot::webshot()`.
#' Since `phantomjs` (and hence `webshot`) does not support WebGL,
Expand All @@ -19,7 +19,7 @@
#' @author Carson Sievert
#'
export <- function(p = last_plot(), file = "plotly.png", selenium = NULL, ...) {
.Deprecated("orca")
.Deprecated("save_image")

# infer the file type
fileType <- tolower(tools::file_ext(file))
Expand Down
Loading