QuestionQ12

Operationalizing an Analytics Project and Data Visualization Techniques

Which R function plots the distribution of one variable along two separate axes?

  • A table()
  • B summary()
  • C density()
  • D rug()
Explanation

rug() adds a one-dimensional rug representation of numeric data to a plot using small tick marks along a selected plot side. The official R graphics documentation describes it as adding a “rug representation (1-d plot)” of the data.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!