Data Visualization Test #2 β Questions and Answers
Question 1: In a data.frame, which of the following lists the names of variables?
- barchart()
- par()
- names()
- quantile() (Correct answer)
Correct answer: quantile()
The `quantile()` function in R is used to calculate quantiles for numeric variables, providing key summary statistics about their distribution. While it doesn't directly 'list' variable names, it operates on the *data within* variables, and its application across multiple variables helps characterize and understand the nature of each variable in a data.frame.
Question 2: Remove the table's grid lines and the chart's horizontal lines.
- does not affect the data-ink ratio
- increases the Non-data-ink ratio
- increases the data-ink ratio (Correct answer)
- decreases the data-ink ratio
Correct answer: increases the data-ink ratio
The data-ink ratio, a principle by Edward Tufte, emphasizes maximizing the proportion of ink used to display actual data. Removing non-essential elements like grid lines and horizontal lines eliminates 'non-data ink' from a chart. This action increases the relative amount of ink dedicated to conveying information, thereby improving the data-ink ratio and making the visualization clearer and more efficient.
Question 3: _________ is used to search for and alter graphical settings.
- anova()
- par() (Correct answer)
- plot()
- cum()
Correct answer: par()
In R's base graphics system, the `par()` function is the primary tool for searching for and altering graphical settings. It allows users to control a wide range of plot parameters, such as margins, colors, fonts, and the layout of multiple plots on a single device. This function is essential for customizing the appearance of visualizations.
Question 4: The useful chart is a great way to show numerous variables.
- scatter chart matrix (Correct answer)
- scatter chart
- stacked column and bar chart
- two-dimensional graph
Correct answer: scatter chart matrix
A scatter chart matrix, also known as a pairs plot, is an excellent visualization for exploring relationships among numerous variables simultaneously. It displays a grid of scatter plots, showing every possible pair of variables against each other. This comprehensive view helps in quickly identifying correlations, trends, and outliers across multiple dimensions of a dataset.
Question 5: Which of the following is a tool for determining whether or not something is normal?
- lm()
- anova()
- qqline() (Correct answer)
- qline()
Correct answer: qqline()
The `qqline()` function in R is specifically used to add a reference line to a Q-Q (quantile-quantile) plot. This line typically passes through the first and third quartiles of the data and serves as a visual guide to assess whether the data points follow a specific theoretical distribution, most commonly a normal distribution. If the data points align closely with the `qqline`, it suggests normality.
Question 6: The graphs that can be used to make comparisons between
- column charts
- Bar charts
- Both Bar & Column Charts (Correct answer)
- Pie charts
Correct answer: Both Bar & Column Charts
Both bar charts and column charts are highly effective tools for making comparisons between different categories or groups. They use bars of varying lengths (horizontal for bar charts, vertical for column charts) to represent quantities, making it easy to visually compare the magnitudes of different items. Their clear visual structure facilitates quick and accurate comparisons.
Question 7: Which method is utilized to calculate the coefficients of factor congruence?
- factor.cumsum
- factor.mosaicplot
- factor.xyplot
- factor.congruence (Correct answer)
Correct answer: factor.congruence
The `factor.congruence()` function is specifically designed to calculate coefficients of factor congruence, a measure used in factor analysis. These coefficients quantify the similarity between factor loadings from different factor solutions or samples. It helps researchers determine the degree to which factors derived from different datasets or analyses are comparable.
Question 8: A real-time data visualization tool with various outputs is known as
- a data table
- a data dashboard (Correct answer)
- a metrics table
- None of the above
Correct answer: a data dashboard
A data dashboard is a real-time data visualization tool that provides a centralized and interactive display of key performance indicators (KPIs) and other important metrics. It consolidates data from various sources into a single interface, offering diverse outputs like charts, graphs, and tables. This allows users to monitor, analyze, and gain insights into performance at a glance.
Question 9: Which of the following statements is incorrect?
- Data visualization reduces insights and leads to slower decisions. (Correct answer)
- The ability to absorb information quickly is one of the benefits of data visualization.
- Another type of visual art is data visualization.
- None of the above
Correct answer: Data visualization reduces insights and leads to slower decisions.
The statement 'Data visualization reduces insights and leads to slower decisions' is incorrect. Data visualization's primary purpose is to enhance understanding and accelerate decision-making by presenting complex data in an easily digestible visual format. It helps reveal patterns, trends, and outliers quickly, leading to more informed and faster insights, not fewer or slower ones.
In a data.frame, which of the following lists the names of variables?