
An interactive graphing library for R
Repo plotly/plotly.R, read from GitHub 1 min ago. plotly has not joined Take My Repo.
Completed the plot_ly() documentation for what happens when type is not
specified (#2362).
Removed the dependency on the {lazyeval} package.
Closed #2483: save_image() no longer embeds Windows file paths directly into Python source passed to reticulate, fixing static image export with Kaleido on Windows.
#2495: ggplotly() now keeps merged legend titles in sync with their legend entries, fixing a case where an upstream change in {rlang}'s hashing could silently reorder combined legend titles (e.g. factor(vs)<br />factor(cyl)) out of step with the entries they label.
Upgrades plotly.js from v2.11.1 to v2.25.2 (35 releases). Key new features now available:
legend2, legend3, etc. with separate positioning and visibility controllabel attribute for shapes and label.texttemplate for parametric shapesmarker.angle, marker.angleref, and marker.standoff properties for directional markersshift and autoshift properties to avoid y-axis overlapping in multi-axis plotsscattermapbox traceseditSelection config optionlabelalias for simplified axis label customizationgriddash property and minor tick/grid line styling optionsAlso includes a security fix for prototype pollution and ~90KB bundle size reduction.
See the plotly.js releases page for the full changelog.
save_image() now works with kaleido v1.0 and higher. (#2447)plotly_build() now works with ggmatrix objects (e.g., from GGally::ggpairs()). (#2447)ggplotly() now shows variables named 'group' in tooltips when mapped to aesthetics like colour.ggplotly() no longer creates empty shapes when panel.border is element_blank() (ggplot2 4.0.0 compatibility).ggplotly() no longer errors when scale_*_manual() has unused aesthetics (e.g., aesthetics = c("colour", "fill") when only colour is used).ggplotly() now respects geom_boxplot(outlier.shape = NA) to hide outlier points.ggplotly() now correctly shows legends and splits traces when scales have multiple aesthetics.ggplotly() now translates legend.position theme element to plotly layout (supports "bottom", "top", "left", and numeric positions).ggplotly() no longer drops legends when geom_blank() is present in the plot.ggplotly() now supports the {ggridges} package. (#2314)ggplotly() to better support recent versions of ggplot2. (#2315, #2368, #2442, thanks @teunbrand).ggplotly() now works better with the development version of ggplot2 (> v3.4.4). (#2315)ggplotly() now works better with the development version of ggplot2 (> v3.4.3). (#2301)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)
highlight()'s selectize argument. (#2217)ggplotly() no longer silently drops legends that are customized through ggplot2::guide_legend().save_image() no longer needs reticulate::py_run_string("import sys") in order to run without error. (#2179)highlight(selectize = TRUE) no longer yields an incorrect selectize.js result when there is a combination of crosstalk and non-crosstalk traces. (#2217)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)ggplotly() no longer errors on stat_summary(geom = "crossbar"). (#2222)ggplotly() no longer removes legends when setting guide properties via guides(aes = guide_xxx(...)).