Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
bfa3519
Render plot_ly() and ggplotly() plots with plotly.core
msummersgill Nov 13, 2026
9a6e871
Rely on plotly.core's validation of attributes
msummersgill Nov 13, 2026
5ea00f5
Use plotly.core's default Shiny events
msummersgill Nov 13, 2026
2a0c09b
Use plotly.core's partial_bundle()
msummersgill Nov 13, 2026
967aa3e
Attach plotly.js and other dependencies to plot_ly() widgets
msummersgill Nov 13, 2026
0f075a6
Speed up plotly_build() and drop tidyverse functions from the build
msummersgill Nov 13, 2026
920e2cf
subplot() accepts plotly.core figures; legacy add_*() helpers are not…
msummersgill Nov 13, 2026
9fa22f0
ggplotly(): drop size-0 fonts of blank theme elements
msummersgill Nov 14, 2026
f79b3a2
Faster heatmap builds: no unique() on the rows of z in map_color()
msummersgill Nov 14, 2026
0a82a02
Remotes: install plotly.core from its master branch
msummersgill Nov 15, 2026
c23fd55
Keep the Chart Studio API, orca() and export() as on master
msummersgill Nov 15, 2026
1a9794b
Static images with plotly.core's Chrome exporter; deprecate kaleido()
msummersgill Nov 16, 2026
a6d1227
ggplotly(): extend coord_sf() graticules to the plot area's edges
msummersgill Nov 16, 2026
87fdb20
Revert "ggplotly(): extend coord_sf() graticules to the plot area's e…
msummersgill Nov 16, 2026
e2c2f50
Re-export highlight() and attrs_selected() from plotly.core
msummersgill Nov 17, 2026
30b8a4c
DESCRIPTION: name the package in Remotes (plotly.core=...)
msummersgill Nov 18, 2026
26d82b5
tests: sf expectations for the MapLibre upgrade
msummersgill Nov 18, 2026
c54a804
Deprecate trace transforms
msummersgill Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ abbvie.R
^\.github$
^\.venv$
CLAUDE\.md
^\.claude$
12 changes: 0 additions & 12 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,18 +63,6 @@ jobs:
cache-version: 3
needs: check

- name: Set up Python (for reticulate)
if: matrix.config.visual_tests == true
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install kaleido
if: matrix.config.visual_tests == true
run: |
# We pin kaleido to v0.2.1 here since >=v1.0 doesn't appear to be correctly rendering some plots
Rscript -e 'library(reticulate); use_python(Sys.which("python")); py_install(c("kaleido==0.2.1", "plotly"))'

# Run test() before R CMD check since, for some reason, rcmdcheck::rcmdcheck() skips vdiffr tests
- name: Run Tests
run: |
Expand Down
4 changes: 2 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ plotly is an R package for creating interactive web graphics via the plotly.js J
# Run all tests
devtools::test()

# Run visual tests (requires kaleido via reticulate)
# Run visual tests (requires Chrome, via plotly.core's chrome_exporter())
Sys.setenv("VISUAL_TESTS" = "true")
devtools::test()

Expand Down Expand Up @@ -72,7 +72,7 @@ The conversion from ggplot2 to plotly follows this flow:
- `R/subplots.R`: Combining multiple plots
- `R/highlight.R`: Linked brushing/crosstalk support
- `R/animate.R`: Animation support
- `R/kaleido.R`, `R/orca.R`: Static image export
- `R/kaleido.R` (deprecated `kaleido()`), `R/orca.R`: Static image export; `save_image()` is plotly.core's

## Testing Patterns

Expand Down
12 changes: 7 additions & 5 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.12.1
Version: 4.12.1.9000
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 All @@ -23,9 +23,10 @@ Description: Create interactive web graphics from 'ggplot2' graphs and/or a cust
URL: https://plotly-r.com, https://github.com/plotly/plotly.R, https://plotly.com/r/
BugReports: https://github.com/plotly/plotly.R/issues
Depends:
R (>= 3.2.0),
R (>= 4.1.0),
ggplot2 (>= 3.0.0)
Imports:
plotly.core,
tools,
scales,
httr (>= 1.3.0),
Expand All @@ -44,8 +45,7 @@ Imports:
rlang (>= 1.0.0),
crosstalk,
purrr,
data.table,
promises
data.table
Suggests:
MASS,
maps,
Expand Down Expand Up @@ -73,9 +73,11 @@ Suggests:
withr,
palmerpenguins,
rversions,
reticulate,
chromote,
rsvg,
ggridges
Remotes:
plotly.core=msummersgill/plotly.R.core@master
LazyData: true
RoxygenNote: 7.3.3
Encoding: UTF-8
Expand Down
176 changes: 159 additions & 17 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,8 +1,61 @@
# Generated by roxygen2: do not edit by hand

S3method(add_bar,plotly)
S3method(add_barpolar,plotly)
S3method(add_box,plotly)
S3method(add_candlestick,plotly)
S3method(add_carpet,plotly)
S3method(add_choropleth,plotly)
S3method(add_choroplethmap,plotly)
S3method(add_cone,plotly)
S3method(add_contour,plotly)
S3method(add_contourcarpet,plotly)
S3method(add_densitymap,plotly)
S3method(add_funnel,plotly)
S3method(add_funnelarea,plotly)
S3method(add_heatmap,plotly)
S3method(add_histogram,plotly)
S3method(add_histogram2d,plotly)
S3method(add_histogram2dcontour,plotly)
S3method(add_icicle,plotly)
S3method(add_image,plotly)
S3method(add_indicator,plotly)
S3method(add_isosurface,plotly)
S3method(add_mesh3d,plotly)
S3method(add_ohlc,plotly)
S3method(add_parcats,plotly)
S3method(add_parcoords,plotly)
S3method(add_pie,plotly)
S3method(add_quiver,plotly)
S3method(add_sankey,plotly)
S3method(add_scatter,plotly)
S3method(add_scatter3d,plotly)
S3method(add_scattercarpet,plotly)
S3method(add_scattergeo,plotly)
S3method(add_scattergl,plotly)
S3method(add_scattermap,plotly)
S3method(add_scatterpolar,plotly)
S3method(add_scatterpolargl,plotly)
S3method(add_scattersmith,plotly)
S3method(add_scatterternary,plotly)
S3method(add_splom,plotly)
S3method(add_streamtube,plotly)
S3method(add_sunburst,plotly)
S3method(add_surface,plotly)
S3method(add_table,plotly)
S3method(add_trace,plotly)
S3method(add_treemap,plotly)
S3method(add_violin,plotly)
S3method(add_volume,plotly)
S3method(add_waterfall,plotly)
S3method(api_create,data.frame)
S3method(api_create,ggplot)
S3method(api_create,plotly)
S3method(as_widget,gg)
S3method(as_widget,ggmatrix)
S3method(as_widget,list)
S3method(as_widget,plotly)
S3method(config,plotly)
S3method(embed_notebook,plotly)
S3method(fortify,SharedData)
S3method(geom2trace,GeomBar)
Expand All @@ -24,22 +77,26 @@ S3method(ggplotly,ggplot)
S3method(ggplotly,plotly)
S3method(highlight_key,default)
S3method(highlight_key,plotly)
S3method(htmltools::as.tags,plotly)
S3method(knitr::knit_print,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(partial_bundle,plotly)
S3method(plotly_build,"NULL")
S3method(plotly_build,gg)
S3method(plotly_build,ggmatrix)
S3method(plotly_build,go_figure)
S3method(plotly_build,list)
S3method(plotly_build,plotly)
S3method(print,api)
S3method(print,api_grid)
S3method(print,api_grid_local)
S3method(print,api_plot)
S3method(print,kaleidoScope)
S3method(print,plotly)
S3method(print,plotly_data)
S3method(process,api_image)
S3method(process,api_plot)
Expand Down Expand Up @@ -91,31 +148,67 @@ export("%>%")
export(TeX)
export(add_annotations)
export(add_area)
export(add_bar)
export(add_barpolar)
export(add_bars)
export(add_box)
export(add_boxplot)
export(add_candlestick)
export(add_carpet)
export(add_choropleth)
export(add_choroplethmap)
export(add_cone)
export(add_contour)
export(add_contourcarpet)
export(add_data)
export(add_densitymap)
export(add_fun)
export(add_funnel)
export(add_funnelarea)
export(add_heatmap)
export(add_histogram)
export(add_histogram2d)
export(add_histogram2dcontour)
export(add_icicle)
export(add_image)
export(add_indicator)
export(add_isosurface)
export(add_lines)
export(add_markers)
export(add_mesh)
export(add_mesh3d)
export(add_ohlc)
export(add_parcats)
export(add_parcoords)
export(add_paths)
export(add_pie)
export(add_polygons)
export(add_quiver)
export(add_ribbons)
export(add_sankey)
export(add_scatter)
export(add_scatter3d)
export(add_scattercarpet)
export(add_scattergeo)
export(add_scattergl)
export(add_scattermap)
export(add_scatterpolar)
export(add_scatterpolargl)
export(add_scattersmith)
export(add_scatterternary)
export(add_segments)
export(add_sf)
export(add_splom)
export(add_streamtube)
export(add_sunburst)
export(add_surface)
export(add_table)
export(add_text)
export(add_trace)
export(add_trace, as_widget, config)
export(add_treemap)
export(add_violin)
export(add_volume)
export(add_waterfall)
export(animation_button)
export(animation_opts)
export(animation_slider)
Expand All @@ -126,10 +219,9 @@ export(api_download_plot)
export(arrange)
export(arrange_)
export(as.widget)
export(as_widget)
export(as_go_figure)
export(attrs_selected)
export(colorbar)
export(config)
export(distinct)
export(distinct_)
export(do)
Expand Down Expand Up @@ -205,7 +297,8 @@ export(to_basic)
export(transmute)
export(transmute_)
export(ungroup)
import(ggplot2)
import(ggplot2, except = c(last_plot, set_last_plot))
import(plotly.core, except = c(schema))
importFrom(data.table,as.data.table)
importFrom(data.table,setorderv)
importFrom(dplyr,arrange)
Expand Down Expand Up @@ -247,26 +340,76 @@ importFrom(htmlwidgets,createWidget)
importFrom(htmlwidgets,onRender)
importFrom(htmlwidgets,prependContent)
importFrom(htmlwidgets,saveWidget)
importFrom(htmlwidgets,shinyRenderWidget)
importFrom(htmlwidgets,shinyWidgetOutput)
importFrom(htmlwidgets,sizingPolicy)
importFrom(httr,RETRY)
importFrom(httr,add_headers)
importFrom(httr,authenticate)
importFrom(httr,config)
importFrom(httr,content)
importFrom(httr,stop_for_status)
importFrom(httr,warn_for_status)
importFrom(httr,write_disk)
importFrom(jsonlite,parse_json)
importFrom(jsonlite,read_json)
importFrom(jsonlite,toJSON)
importFrom(magrittr,"%>%")
importFrom(plotly.core,TeX)
importFrom(plotly.core,add_bar)
importFrom(plotly.core,add_barpolar)
importFrom(plotly.core,add_box)
importFrom(plotly.core,add_candlestick)
importFrom(plotly.core,add_carpet)
importFrom(plotly.core,add_choropleth)
importFrom(plotly.core,add_choroplethmap)
importFrom(plotly.core,add_cone)
importFrom(plotly.core,add_contour)
importFrom(plotly.core,add_contourcarpet)
importFrom(plotly.core,add_densitymap)
importFrom(plotly.core,add_funnel)
importFrom(plotly.core,add_funnelarea)
importFrom(plotly.core,add_heatmap)
importFrom(plotly.core,add_histogram)
importFrom(plotly.core,add_histogram2d)
importFrom(plotly.core,add_histogram2dcontour)
importFrom(plotly.core,add_icicle)
importFrom(plotly.core,add_image)
importFrom(plotly.core,add_indicator)
importFrom(plotly.core,add_isosurface)
importFrom(plotly.core,add_mesh3d)
importFrom(plotly.core,add_ohlc)
importFrom(plotly.core,add_parcats)
importFrom(plotly.core,add_parcoords)
importFrom(plotly.core,add_pie)
importFrom(plotly.core,add_quiver)
importFrom(plotly.core,add_sankey)
importFrom(plotly.core,add_scatter)
importFrom(plotly.core,add_scatter3d)
importFrom(plotly.core,add_scattercarpet)
importFrom(plotly.core,add_scattergeo)
importFrom(plotly.core,add_scattergl)
importFrom(plotly.core,add_scattermap)
importFrom(plotly.core,add_scatterpolar)
importFrom(plotly.core,add_scatterpolargl)
importFrom(plotly.core,add_scattersmith)
importFrom(plotly.core,add_scatterternary)
importFrom(plotly.core,add_splom)
importFrom(plotly.core,add_streamtube)
importFrom(plotly.core,add_sunburst)
importFrom(plotly.core,add_surface)
importFrom(plotly.core,add_table)
importFrom(plotly.core,add_treemap)
importFrom(plotly.core,add_violin)
importFrom(plotly.core,add_volume)
importFrom(plotly.core,add_waterfall)
importFrom(plotly.core,attrs_selected)
importFrom(plotly.core,event_data)
importFrom(plotly.core,event_register)
importFrom(plotly.core,event_unregister)
importFrom(plotly.core,highlight)
importFrom(plotly.core,last_plot)
importFrom(plotly.core,partial_bundle)
importFrom(plotly.core,plotlyOutput)
importFrom(plotly.core,plotlyProxy)
importFrom(plotly.core,plotlyProxyInvoke)
importFrom(plotly.core,plotly_json)
importFrom(plotly.core,renderPlotly)
importFrom(plotly.core,save_image)
importFrom(purrr,transpose)
importFrom(rlang,"!!!")
importFrom(rlang,"!!")
importFrom(rlang,eval_tidy)
importFrom(rlang,is_na)
importFrom(stats,complete.cases)
importFrom(stats,is.leaf)
importFrom(stats,quantile)
Expand All @@ -276,7 +419,6 @@ importFrom(tidyr,unnest)
importFrom(tools,file_ext)
importFrom(tools,file_path_sans_ext)
importFrom(utils,browseURL)
importFrom(utils,capture.output)
importFrom(utils,data)
importFrom(utils,file.edit)
importFrom(utils,getFromNamespace)
Expand Down
Loading
Loading