ggplotly is under development so, for the time being, you will not be able to
pass any ggplot2 object to the ggplotly()
function.
For reference, here is a list of working examples:
http://rpubs.com/tdhock/hello-ggplotly (Source at https://github.com/tdhock/plotly-demos)
Check out this awesome blog post: http://ropensci.org/blog/2014/04/17/plotly/
http://rpubs.com/plotly/bar-charts
Is it not super nice to embed interactive plotly graphs inside your html knitr documents? Again, http://rpubs.com/chriddyp/plotly-demo :)