InterviewSolution
Saved Bookmarks
| 1. |
What is a scatter plot? Explain with an example of how to create one scatter plot using R libraries. |
|
Answer» A scatter PLOT is a chart used to plot a correlation between two or more variables at the same time. We can consider the EXAMPLE of IRIS dataset in R USING GGPLOT2 library. # Example of ScatterPlot library(ggplot2) ggplot(iris,aes(y=Sepal.Length,x=Petal.Length))+geom_point() Sample output: This shows a COMPARISON between Sepal. Length and Petal.Length in the IRIS dataset leveraging R ggplot2 library. |
|