# NOT RUN {
if (require(plotly)) {
manipulateWidget({
plot_ly(data.frame(x = 1:10, y = rnorm(10, mean, sd)), x=~x, y=~y,
type = "scatter", mode = "markers")
},
mean = mwNumeric(0),
sd = mwNumeric(1, min = 0, step = 0.1)
)
}
# }
Run the code above in your browser using DataCamp Workspace