Multiple Choices: Based Plot: Curve Plot

  1. What is the primary purpose of the curve() function in R?
  1. Which argument in the curve() function is used to specify the mathematical expression to plot?
  1. How do you specify the range of x-values for a plot created using curve()?
  1. What type of object can be passed as the expr argument in curve()?
  1. Which of the following commands correctly plots the sine function from \(-\pi\) to \(\pi\) using curve()?
  1. How can you change the line color in a plot generated by curve()?
  1. Which argument in curve() would you use to change the number of points plotted on the curve?
  1. How can you add a title to the plot created by curve()?
  1. What happens if you set the add = TRUE argument in curve()?
  1. Which of the following would plot the function y = x^2 from -5 to 5?
  1. What does the add = TRUE argument do in the curve() function?
  1. What is the default type of plot produced by the curve() function in R?
  1. If you want to plot a curve from x = -10 to x = 10 with 200 points, what would you do?
  1. To plot the function y = sqrt(x) for values of x from 0 to 25, what would you use?
  1. How can you plot multiple mathematical expressions on the same graph using curve()?
  1. Which argument in curve() allows you to customize the line type of the curve?
  1. How would you add labels to the x-axis and y-axis while using curve()?
  1. Which of the following is a correct way to plot a quadratic function y = x^2 from -3 to 3 using curve()?
  1. What will the following command do?
   curve(sin(x), from = 0, to = 2*pi, col = "red", lty = 2)
  1. How would you display a curve with a log-scaled y-axis using curve()?