1. Putting Plotly Graphs in Knitr

library("knitr")
library("devtools")
## 
## Attaching package: 'devtools'
## 
## The following objects are masked from 'package:utils':
## 
##     ?, help
## 
## The following object is masked from 'package:base':
## 
##     system.file
url<-"https://plot.ly/~r_user_guide/2"
plotly_iframe <- paste("<iframe scrolling='no' seamless='seamless' style='border:none' src='", url, 
    "/650/600' width='650' height='600'></iframe>", sep = "")