Multiple Choices: Based Plot: Scatter Plot

  1. Which function in base R is commonly used to create a scatter plot?
  1. How do you add a title to a scatter plot in base R?
  1. To change the x-axis label in a scatter plot, which argument would you use?
  1. How can you change the color of the points in a scatter plot?
  1. Which argument changes the symbol (shape) of the points in a scatter plot?
  1. Which code below will create a scatter plot with red points and a title “My Scatter Plot”?
  1. If you want to add a grid to your scatter plot, which function would you use after plot()?
  1. To add a regression line to a scatter plot, which function would you use?
  1. Which argument changes the size of the points in a scatter plot?
  1. How can you add labels for individual points on a scatter plot?
  1. How can you limit the x-axis range to show only values between 0 and 100 in a scatter plot?
  1. What function would you use to save a scatter plot as a PNG file?
  1. How would you set the background color of the plotting area to light gray?
  1. If you want to overlay a density plot on top of a scatter plot, which function should you use after creating the scatter plot?
  1. How do you change the aspect ratio of a scatter plot in base R to ensure that one unit on the x-axis is the same length as one unit on the y-axis?
  1. Which function allows you to add points to an existing plot without creating a new plot?
  1. To add a legend to a scatter plot with different colors for two groups of points, which function should you use?
  1. Which argument in the plot() function allows you to specify the type of plot (e.g., lines, points, both)?
  1. What command can be used to add a smooth curve to a scatter plot by fitting a loess (local regression) line?
  1. If you want to create a scatter plot in which the point size represents a third variable (e.g., z), which argument would you use?
  1. To remove the axes entirely from a scatter plot, which argument would you use?
  1. When you want to customize tick marks on the x-axis (e.g., add ticks at specific values), which function should you use after plot()?
  1. How can you label specific points (e.g., outliers) with their coordinates on a scatter plot?
  1. Which function would you use to add custom axis labels on an existing scatter plot?
  1. How do you adjust the margin space around a plot in base R?
  1. If you want to add a border around the entire plot area, which function should you use?
  1. How can you plot a scatter plot with a logarithmic scale on both axes?
  1. Which argument in the plot() function can be used to specify custom limits for both x and y axes simultaneously?
  1. To add multiple scatter plots on the same graphic device (in a grid layout), which function should you use before plot()?