ggplotlyExtra v0.0.1


Monthly downloads



Extra Convenience Functions for 'Plotly'

Convenience functions for smooth conversion from 'ggplot' to 'plotly' where the conversion using ggplotly() usually gives an unexpected labels. The package ease the process of making a 'plotly' figures generated from 'ggplot2' object more aesthetic in terms of labels and customizability.



The goal of ggplotlyExtra is to make a ready-customized functions for smooth transition between ‘ggplot2’ and ‘plotly’.


This is a basic example which shows you how to solve a common problem:

#> Warning: package 'ggplot2' was built under R version 3.5.3
#> Warning: package 'plotly' was built under R version 3.5.3
#> Attaching package: 'plotly'
#> The following object is masked from 'package:ggplot2':
#>     last_plot
#> The following object is masked from 'package:stats':
#>     filter
#> The following object is masked from 'package:graphics':
#>     layout

p <- ggplot() + ggplotly_histogram(data = ToothGrowth, mapping = aes(len))+
#> `stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
#> Warning: Ignoring unknown aesthetics: label1, label2, label3

ggplotly(p, tooltip = c("Range", "count", "density"))
#> PhantomJS not found. You can install it with webshot::install_phantomjs(). If it is installed, please make sure the phantomjs executable can be found via the PATH variable.

You can hover on the histogram to see how this works.

Functions in ggplotlyExtra

Name Description
ggplotly_histogram Clean 'ggplot2' Histogram to be Converted to 'Plotly'
No Results!

Last month downloads


License GPL-3
Encoding UTF-8
LazyData true
RoxygenNote 7.0.0
NeedsCompilation no
Packaged 2019-11-29 11:00:41 UTC; xxxmar
Repository CRAN
Date/Publication 2019-12-02 16:20:06 UTC

Include our badge in your README