how would you build a scatter-plot using plotly?



how would you build a scatter-plot using plotly?..

Answer / Shubham Goel

```Rnnlibrary(plotly) n# create scatter plot datanscatter_data <- data.frame(x = c(1, 2, 3, 4), y = c(5, 6, 7, 8)) n# create the plotnplot_ly(scatter_data, x = ~x, y = ~y) n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More R Programming Interview Questions

How many types of functions are there in R string manipulation?

1 Answers  


Explain how R programming applied to the real world?

1 Answers  


Explain how you can start the r commander gui?

1 Answers  


Write a function in R language to replace the missing value in a vector with the mean of that vector?

1 Answers  


What is transpose?

1 Answers  


Enlist some of the functions that r provides?

1 Answers  


What is the function in r?

1 Answers  


Describe grep() in r string manipulation?

1 Answers  


In r how missing values are represented?

1 Answers  


How many types of data types are provided by R?

1 Answers  


How r handles missing values?

1 Answers  


How would you fit a linear model over a scatter-plot?

1 Answers  


Categories