I have data frame having 3 columns namely index, Actual & Predicted (all column are numeric). I am using 2 packages plotly & ggplot2 for plotting index on x-axis & Actual and Predicted on y-axis. The command for plotting the graphs goes as follows-

plot<- ggplotly(ggplot(dataframe, aes(x = index))+ geom_line(aes(y=Predicted), colour= "blue")+ geom_line(aes(y=Actual), colour="red"))


The R was giving the plot smoothly without any recommendations, but suddenly it started giving recommendations like,

We recommend that you use the dev version of ggplot2 with ggplotly() Install it with: devtools::install_github('hadley/ggplot2')

So I tried installing ggplot2 with devtools as given in the recommendations.

I am able to plot the graph but still I am getting the above recommendation.

What does that recommendation mean and what to do if i am getting the recommendation even after installing it with devtools ?

  • I had the same message before, but it was gone upon installing the development version. – SmallChess Aug 31 '17 at 6:17
  • There's no need to worry. ggploty developers want you to use their development version so they could fix bugs easier. Don't worry, nothing really happened. – SmallChess Aug 31 '17 at 6:18

Plotly is R package for creating interactive web-based graphs via plotly's JavaScript graphing library, plotly.js. The plotly R libary contains the ggplotly function , which will convert ggplot2 figures into a Plotly object.

If you are still getting the recommendation even after installing it, it seems it was not properly installed. Please refer the below git hub link and code to do the same installation properly.

Try to via Hadley at https://github.com/hadley/ggplot2

# install devtools

# install dependency of scales package
install.packages(c("RColorBrewer", "stringr", "dichromat", "munsell", "plyr", "colorspace"))

# Open devtools package

# move to development mode
# scales and ggplot2 are installed in "~/R-dev" directory, so official version of ggplot2 are not removed.

install_github("hadley/scales", force=TRUE)
# main branch of development
# (Optional) install_github("ggplot2", "kohske", "feature/new-guides-with-gtable")

# Exit dev mode

# load development version of ggplot2

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.