Q. Which of the following cuts numeric vector into intervals of equal length?

  • (A) cut_interval
  • (B) cut_time
  • (C) cut_number
  • (D) cut_date
πŸ’¬ Discuss
βœ… Correct Answer: (A) cut_interval

Q. For barchart and . . . . . . . . non-trivial methods exist for tables and arrays, documented at barchart.table.

  • (A) scatterplot
  • (B) dotplot
  • (C) xyplot
  • (D) scatterplot & xyplot
πŸ’¬ Discuss
βœ… Correct Answer: (B) dotplot

Q. Which of the following functions is typically used to add elements to a plot in the base graphics system?

  • (A) lines()
  • (B) hist()
  • (C) plot()
  • (D) boxplot()
πŸ’¬ Discuss
βœ… Correct Answer: (D) boxplot()

Q. . . . . . . . . generate aesthetic mappings from a string.

  • (A) aes_all
  • (B) aes_auto
  • (C) aes_string
  • (D) aes_position
πŸ’¬ Discuss
βœ… Correct Answer: (C) aes_string

Q. . . . . . . . . produces one-dimensional scatterplots.

  • (A) xyplot
  • (B) stripplot
  • (C) barchart
  • (D) bwplot
πŸ’¬ Discuss
βœ… Correct Answer: (B) stripplot

Q. . . . . . . . . create a complete ggplot appropriate to a particular data type.

  • (A) autoplot
  • (B) is.ggplot
  • (C) printplot
  • (D) qplot_ggplot
πŸ’¬ Discuss
βœ… Correct Answer: (A) autoplot

Q. . . . . . . . . grammar makes a clear distinction between your data and what gets displayed on the screen or page.

  • (A) ggplot1
  • (B) ggplot2
  • (C) d3.js
  • (D) ggplot3
πŸ’¬ Discuss
βœ… Correct Answer: (B) ggplot2

Q. Annotation of plots in any plotting system involves adding points, lines, or text to the plot, in addition to customizing axis labels or adding titles. Different plotting systems have different sets of functions for annotating plots in this way. Which of the following functions can be used to annotate the panels in a multi-panel lattice plot?

  • (A) points()
  • (B) panel.abline()
  • (C) lines()
  • (D) axis()
πŸ’¬ Discuss
βœ… Correct Answer: (B) panel.abline()

Q. Point out the wrong statement?

  • (A) is.rel reports whether x is a theme object
  • (B) is.theme reports whether x is a theme object
  • (C) opts build a theme (or partial theme) from theme elements
  • (D) theme_bw is theme with grey background and white gridlines
πŸ’¬ Discuss
βœ… Correct Answer: (A) is.rel reports whether x is a theme object

Q. What will be the output of the following R code?
> set.seed(10)
> x <- rbinom(100, 1, 0.5)
> str(x)

  • (A) int [1:100] 1 0 0 1 0 0 0 0 1 0 ...
  • (B) int [1:100] 10 0 01 1 0 0 01 0 1 0 ...
  • (C) int [1:100] 1 03 0 1 0 0 0 02 1 0 ...
  • (D) int [1:100] 1 2 3 1 1 0 0 0 1 0 ...
πŸ’¬ Discuss
βœ… Correct Answer: (A) int [1:100] 1 0 0 1 0 0 0 0 1 0 ...