Data Visualization with R
- 58Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
In the Titanic dataset, what does the survived variable represent?
In the Titanic dataset, what does the survived variable represent?
58 questions
- 1
In the Titanic dataset, what does the
survivedvariable represent?- A
A text label describing the passenger's port of embarkation
- B
A continuous measure of time spent aboard the ship
- C
A three-level category indicating the passenger's ticket class
- D
A binary indicator coded 0 for death and 1 for survival
Correct answer
DA binary indicator coded 0 for death and 1 for survival
Explanation
The
survivedvariable is a binary indicator: 0 means the passenger perished, and 1 means the passenger survived. - A
- 2
What does
pclassrepresent in the Titanic dataset?- A
The passenger's position in the ship's boarding queue
- B
The passenger's port of embarkation
- C
The passenger's class of ticket and level of accommodation
- D
The passenger's number of parents and children aboard
Correct answer
CThe passenger's class of ticket and level of accommodation
Explanation
pclassrecords first-, second-, or third-class ticket accommodation aboard the Titanic. - A
- 3
Why is a passenger's ticket class not treated as ratio-scale numeric data in the tutorial?
- A
The values are text descriptions rather than numbers
- B
The class values do not support meaningful multiplication or division
- C
The class values are unique identifiers for individual passengers
- D
The values are missing for nearly every passenger in the dataset
Correct answer
BThe class values do not support meaningful multiplication or division
Explanation
Although the classes are represented by numbers, a third-class ticket is not meaningfully three times a first-class ticket. Multiplication and division do not make sense for these categories.
- A
- 4
What do the
sibspandparchcolumns record?- A
sibspcounts parents and children;parchcounts siblings and spouses - B
sibsprecords embarkation port;parchrecords cabin assignment - C
sibspcounts siblings and/or a spouse;parchcounts parents and/or children - D
sibsprecords ticket class;parchrecords the passenger's fare
Correct answer
Csibspcounts siblings and/or a spouse;parchcounts parents and/or childrenExplanation
sibspis an overloaded count of siblings and/or a spouse traveling with the passenger.parchis an overloaded count of parents and/or children traveling with the passenger. - A
- 5
What does the
agecolumn contain?- A
A continuous numeric measure that can include decimal values
- B
An ordinal category with only first-, second-, and third-level values
- C
A binary category indicating whether the passenger was a child
- D
A unique identifier assigned to each passenger
Correct answer
AA continuous numeric measure that can include decimal values
Explanation
Age is a continuous numeric variable; values can include decimal points, such as 33.44 years.
- A
- 6
Which interpretation of the
ticketandfarecolumns is correct?- A
ticketis a cabin assignment, andfareis the passenger's ticket class - B
ticketis a ticket serial number, andfareis the amount paid in pounds sterling - C
ticketis the amount paid in pounds sterling, andfareis a ticket serial number - D
ticketis the embarkation port, andfareis the passenger's age
Correct answer
Bticketis a ticket serial number, andfareis the amount paid in pounds sterlingExplanation
The
ticketcolumn contains the ticket's serial number, whilefarerecords how much the passenger paid in pound sterling. - A
- 7
What does the
cabincolumn indicate?- A
The passenger's ticket price and class combined
- B
A cabin number, when one was assigned to the passenger
- C
The number of relatives traveling with the passenger
- D
The port where the passenger boarded the ship
Correct answer
BA cabin number, when one was assigned to the passenger
Explanation
The
cabincolumn lists an assigned cabin number when a passenger had one; not every passenger had a cabin number recorded. - A
- 8
Which mapping of embarkation codes is given in the tutorial?
- A
C is Queenstown, Q is Southampton, and S is Cherbourg
- B
C is Cherbourg, Q is Queenstown, and S is Southampton
- C
C is Cherbourg, Q is Southampton, and S is Queenstown
- D
C is Southampton, Q is Cherbourg, and S is Queenstown
Correct answer
BC is Cherbourg, Q is Queenstown, and S is Southampton
Explanation
The port codes are C for Cherbourg, Q for Queenstown, and S for Southampton.
- A
- 9
Why are
passenger IDandnamenot used as-is for the tutorial's analysis?- A
They encode survival directly, making the other variables unnecessary
- B
Each is unique for every passenger, so neither provides an immediate repeated pattern for grouping
- C
Both columns contain only missing values, so they cannot be plotted
- D
Both columns are continuous numeric measurements with extreme outliers
Correct answer
BEach is unique for every passenger, so neither provides an immediate repeated pattern for grouping
Explanation
Passenger IDs are unique, and the dataset contains 891 unique names. In their existing form, they do not provide repeated categories or an obvious analytical signal for the visualizations being demonstrated.
- A
- 10
What possible analytical avenue does the tutorial mention for passenger names, while leaving it outside the lesson's scope?
- A
Converting every name into a ticket-class category
- B
Applying regular expressions or text analytics to extract patterns
- C
Using names to calculate a passenger's fare in pounds
- D
Treating each name as a continuous age measurement
Correct answer
BApplying regular expressions or text analytics to extract patterns
Explanation
The tutorial notes that regular expressions or text analytics might extract useful signal from names, but this is beyond the lesson's scope.
- A
- 11
Why is the Titanic dataset considered a useful proxy for some business datasets?
- A
It is a complete record of modern customers and their purchasing behavior
- B
It resembles customer-profile data and includes imperfect data and overloaded columns
- C
It uses a separate database column for every possible business meaning
- D
It contains only clean numerical measurements with no categorical variables
Correct answer
BIt resembles customer-profile data and includes imperfect data and overloaded columns
Explanation
The tutorial describes the Titanic data as a proxy for business customer-profile data because it is not perfectly clean and includes overloaded columns, features often encountered in real business systems.
- A
- 12
Why was the Titanic dataset considered accessible for a tutorial with participants from varied backgrounds?
- A
The dataset contains only one variable and one possible conclusion
- B
The story and problem domain are widely familiar to people
- C
The dataset requires no knowledge of data or visualization
- D
The dataset directly represents every participant's industry
Correct answer
BThe story and problem domain are widely familiar to people
Explanation
The tutorial selected the Titanic data partly because people from varied industries and backgrounds are generally familiar with the Titanic story.
- A
- 13
Why should
survivedbe treated as a categorical factor rather than as an ordinary numeric measurement?- A
It has too many distinct values to be represented numerically
- B
Its values label outcomes, and arithmetic such as multiplying them is not meaningful for the analysis
- C
It records the continuous amount of time each passenger survived
- D
Its values have decimal points that make arithmetic impossible
Correct answer
BIts values label outcomes, and arithmetic such as multiplying them is not meaningful for the analysis
Explanation
Although
survivedis read as integers, its values represent categories—perished or survived—not measurements for which mathematical operations such as multiplication or division are meaningful. - A
- 14
Why should
pclassbe treated as a factor in the demonstrated analysis?- A
Its values increase continuously with passenger age
- B
Its values measure the exact distance between decks on the ship
- C
The numbers identify ticket-class categories rather than ratio-scale quantities
- D
The values are free-form strings that cannot be converted to categories
Correct answer
CThe numbers identify ticket-class categories rather than ratio-scale quantities
Explanation
The numeric labels 1, 2, and 3 denote ticket classes; they do not represent quantities for which multiplication or division is meaningful.
- A
- 15
Why are
sexandembarkednatural candidates for factors?- A
They have a limited set of named categories, such as male/female and C/Q/S
- B
They contain continuous values that must be divided into intervals
- C
They are counts that should be summed as numeric measurements
- D
They are unique for every passenger, so each row forms its own category
Correct answer
AThey have a limited set of named categories, such as male/female and C/Q/S
Explanation
The tutorial treats
sexandembarkedas factors because they take values from a limited set of categories, such as male/female and the three port codes. - A
- 16
What is one benefit of telling ggplot2 explicitly that a variable is a factor?
- A
It converts the factor into a continuous measurement for a histogram
- B
It can use the categorical levels in useful ways, such as assigning colors in a plot
- C
It removes the need to specify any data-to-plot mappings
- D
It automatically fills in all missing values in the dataset
Correct answer
BIt can use the categorical levels in useful ways, such as assigning colors in a plot
Explanation
The tutorial notes that ggplot2 can make useful use of factor variables in aesthetic mappings, including using categories to color-code a visualization.
- A
- 17
What does ggplot2 do when the tutorial plots age values that are missing?
- A
It automatically predicts each missing age and adds the predictions
- B
It converts all missing ages to zero without reporting the change
- C
It refuses to make any plot that uses the age column
- D
It removes the missing observations from that plot and reports how many were removed
Correct answer
DIt removes the missing observations from that plot and reports how many were removed
Explanation
When plotting age, ggplot2 removes missing observations from the visualization and issues a warning. The tutorial's dataset has 177 missing age values.
- A
- 18
What does the tutorial say a data scientist may need to consider after discovering missing ages?
- A
Changing all ages into ticket-class labels
- B
Removing affected rows or imputing the missing ages
- C
Using passenger names to replace the missing ages automatically
- D
Ignoring missingness in every subsequent analysis
Correct answer
BRemoving affected rows or imputing the missing ages
Explanation
The tutorial says the data scientist may later need to address missing ages, for example by removing those rows or imputing the missing values.
- A
- 19
Which three elements does the tutorial identify as the practical minimum for creating a basic ggplot2 graphic?
- A
Data, an aesthetic mapping, and a layer
- B
A theme, a scale, and a coordinate system
- C
A title, a legend, and a faceting variable
- D
A database, a pivot table, and a print device
Correct answer
AData, an aesthetic mapping, and a layer
Explanation
For a basic graphic, the tutorial emphasizes providing data, an aesthetic mapping that connects data to the plot, and a layer that specifies what to draw.
- A
- 20
In the grammar of graphics, what role does the data play?
- A
It supplies the raw material used to create the visualization
- B
It selects the coordinate system but supplies no plotted values
- C
It determines only the plot's font and background color
- D
It controls only whether the chart has a title
Correct answer
AIt supplies the raw material used to create the visualization
Explanation
Data is the raw material for a visualization; without data, there is no plotted content.
- A
- 21
What does a layer represent in a ggplot2 visualization?
- A
The subset of observations selected for visual drill-down
- B
The visible geometric content, such as points, lines, or bars
- C
The rules that scale data to fit the available display space
- D
The font and color scheme used for plot labels
Correct answer
BThe visible geometric content, such as points, lines, or bars
Explanation
Layers are the visible elements of a plot, such as points, lines, or bars.
- A
- 22
What is the purpose of a scale in the grammar of graphics?
- A
It maps or adjusts data values so they can be represented consistently in limited visual space
- B
It adds explanatory text to the title and axis labels
- C
It changes the plot's perspective from a grid to a list
- D
It selects which passengers should be included in the dataset
Correct answer
AIt maps or adjusts data values so they can be represented consistently in limited visual space
Explanation
A scale helps map data values to the visual output, making them fit consistently and intelligibly within limited display space.
- A
- 23
What do coordinates determine in a visualization?
- A
The plot's spatial perspective, such as its default two-dimensional x-y grid
- B
The font size and color scheme of the plot
- C
The number of missing values that are removed
- D
The categorical meanings of the data columns
Correct answer
AThe plot's spatial perspective, such as its default two-dimensional x-y grid
Explanation
Coordinates define the visualization's perspective. The common default is a two-dimensional x-y grid, though ggplot2 supports other coordinate systems.
- A
- 24
What is faceting used for in ggplot2?
- A
Rescaling all numeric values to fit a display
- B
Converting a continuous variable into a factor
- C
Creating visual drill-downs by splitting data into subsets or panels
- D
Changing the plot background and typography
Correct answer
CCreating visual drill-downs by splitting data into subsets or panels
Explanation
Faceting divides a visualization into panels for subsets of the data, providing a visual way to drill down by one or more variables.
- A
- 25
What can themes control in a ggplot2 graphic?
- A
The raw values stored in the data frame
- B
Display details such as fonts, font sizes, and color schemes
- C
The mathematical meaning of the variables
- D
The number of rows read from a CSV file
Correct answer
BDisplay details such as fonts, font sizes, and color schemes
Explanation
Themes provide control over visual presentation details, including fonts, font sizes, and color schemes.
- A
- 26
Why can someone create useful ggplot2 charts without mastering every part of the grammar?
- A
The defaults often work well, and detailed controls are mainly needed for customization
- B
Every ggplot2 chart uses only a single fixed chart type
- C
ggplot2 automatically chooses the correct business question for every dataset
- D
The data and aesthetic mapping are optional for all chart types
Correct answer
AThe defaults often work well, and detailed controls are mainly needed for customization
Explanation
The tutorial explains that ggplot2's defaults are often sufficient to get started; deeper knowledge of scales, coordinates, facets, and themes is useful when more customization is needed.
- A
- 27
What does an aesthetic mapping specify?
- A
How data variables connect to visual properties, such as mapping a column to an axis
- B
How the computer installs a package from an online repository
- C
Which file format should be used to save the source data
- D
Which rows should be deleted from the original data frame
Correct answer
AHow data variables connect to visual properties, such as mapping a column to an axis
Explanation
An aesthetic mapping connects data variables to visual properties—for example, mapping a data column to the x-axis.
- A
- 28
What does a
geom_function specify in ggplot2?- A
The color palette for every possible plot
- B
The subset of data used by a facet
- C
The data frame's column names and types
- D
The geometric layer or kind of plot element to draw
Correct answer
DThe geometric layer or kind of plot element to draw
Explanation
The tutorial describes
geom_functions as defining the layer or visualization to render, such as a bar chart or histogram. - A
- 29
What is the significance of the
ggin the name ggplot2, according to the tutorial?- A
It indicates that every plot must use a grid coordinate system
- B
It stands for a general graphics file format
- C
It refers to a graph-generating database
- D
It refers to the grammar of graphics
Correct answer
DIt refers to the grammar of graphics
Explanation
The package name comes from the grammar of graphics, abbreviated as gg.
- A
- 30
What combination of capabilities helps explain ggplot2's usefulness to data professionals?
- A
It only creates simple charts but automatically interprets their results
- B
It can produce polished graphics quickly while also allowing fine-grained customization
- C
It replaces the need to understand data and choose suitable visualizations
- D
It requires extensive code for every plot and disallows visual customization
Correct answer
BIt can produce polished graphics quickly while also allowing fine-grained customization
Explanation
The tutorial emphasizes both quick production of print-quality graphics and the ability to control visual details through ggplot2's grammar and API.
- A
- 31
Why is
geom_bar()suitable for plotting the categoricalsurvivedvariable in the example?- A
A bar chart automatically identifies the cause of each passenger's death
- B
A bar chart calculates the average of a continuous survival-time measurement
- C
A bar chart is the only geometry that can use an x-axis mapping
- D
A bar chart displays counts for categories, which is appropriate for this outcome
Correct answer
DA bar chart displays counts for categories, which is appropriate for this outcome
Explanation
The tutorial uses a bar chart for
survivedbecause the variable is categorical and a bar chart represents category counts. - A
- 32
In a bar chart of
survived, what does mappingsurvivedto the x-axis accomplish?- A
It makes the vertical axis display passenger age
- B
It divides the plot into panels by ticket class
- C
It places the outcome categories on the horizontal axis
- D
It assigns each passenger a unique color based on name
Correct answer
CIt places the outcome categories on the horizontal axis
Explanation
Mapping
survivedto the x-axis places the two outcome categories, 0 and 1, along the horizontal axis. - A
- 33
What does mapping a categorical variable to
fillcommonly do in the demonstrated bar charts?- A
It changes the variable into a continuous measurement
- B
It color-codes plot elements according to that variable's categories
- C
It removes any categories with small counts
- D
It adds a new data column containing percentages
Correct answer
BIt color-codes plot elements according to that variable's categories
Explanation
Mapping
fillto a categorical variable lets ggplot2 color-code the plot elements according to that variable's levels, such as the two survival outcomes. - A
- 34
What approximate overall survival proportions does the tutorial report for the Titanic data?
- A
About 50% survived and about 50% perished
- B
About 25% survived and about 75% perished
- C
About 38% survived and about 62% perished
- D
About 62% survived and about 38% perished
Correct answer
CAbout 38% survived and about 62% perished
Explanation
The tutorial estimates that roughly 38% of passengers survived and 62% perished.
- A
- 35
How can a plot's title and axis labels be customized in the tutorial's examples?
- A
By converting the data frame to a spreadsheet
- B
By setting the histogram's bin width
- C
By using the
labs()function - D
By changing the
facet_wrap()function
Correct answer
CBy using the
labs()functionExplanation
The tutorial uses
labs()to modify plot labels, including the title and axis labels. - A
- 36
What visual change does the tutorial's use of
theme_bw()make to the example chart?- A
It converts the bar chart into a density plot
- B
It replaces the category labels with numerical percentages
- C
It replaces the default gray background with a clean white background
- D
It adds a separate panel for each ticket class
Correct answer
CIt replaces the default gray background with a clean white background
Explanation
The speaker prefers a white background and uses
theme_bw()to replace ggplot2's default gray background in the example. - A
- 37
What pattern does the survival-by-sex visualization show?
- A
Neither sex had any survivors in the dataset
- B
Females and males had identical survival proportions
- C
Females survived disproportionately more often than males
- D
Males survived disproportionately more often than females
Correct answer
CFemales survived disproportionately more often than males
Explanation
The color-coded bars show that most females survived, while most males did not, so female passengers survived disproportionately more often.
- A
- 38
What additional information about the passenger population is visible in the survival-by-sex chart?
- A
There were approximately twice as many males as females
- B
The chart shows that every passenger was traveling with family
- C
There were equal numbers of males and females
- D
There were approximately twice as many females as males
Correct answer
AThere were approximately twice as many males as females
Explanation
In addition to survival differences, the chart indicates that there were approximately two males for every female passenger.
- A
- 39
What relationship between ticket class and survival is shown in the tutorial's chart?
- A
Only second-class passengers survived
- B
Survival generally increased from first class to second class to third class
- C
Survival was identical across all three ticket classes
- D
Survival generally declined from first class to second class to third class
Correct answer
DSurvival generally declined from first class to second class to third class
Explanation
The chart shows the highest survival proportion in first class, a lower proportion in second class, and the lowest in third class.
- A
- 40
What is the purpose of using
facet_wrap()to split a survival chart bypclass?- A
It converts ticket class to a continuous age scale
- B
It removes the fill colors that distinguish survival outcomes
- C
It creates separate panels for ticket classes so survival patterns can be compared within each class
- D
It combines all ticket classes into one average survival value
Correct answer
CIt creates separate panels for ticket classes so survival patterns can be compared within each class
Explanation
Faceting by
pclasscreates separate panels for first, second, and third class, allowing comparisons of survival patterns within each class. - A
- 41
What is the main purpose of a histogram in the tutorial's analysis of passenger age?
- A
To compare the font sizes used in plot labels
- B
To display the relationship between two categorical variables
- C
To show the distribution of ages by grouping values into intervals
- D
To show individual ticket serial numbers in order
Correct answer
CTo show the distribution of ages by grouping values into intervals
Explanation
The tutorial uses a histogram to examine the age distribution, grouping ages into bins.
- A
- 42
What does a histogram's
binwidthcontrol?- A
The width of the intervals into which numeric values are grouped
- B
The number of categorical variables used for coloring
- C
The transparency of overlapping plot elements
- D
The size of the plot's title text
Correct answer
AThe width of the intervals into which numeric values are grouped
Explanation
Bin width determines the width of the intervals used to group continuous values. The tutorial illustrates this with five-year age bins.
- A
- 43
Why does the tutorial recommend trying different histogram bin widths?
- A
Changing bin width changes the underlying recorded ages
- B
A histogram cannot display missing values unless the width is adjusted
- C
The visual shape of a histogram changes with bin width, and the default may not be optimal
- D
Different bin widths automatically identify causal relationships
Correct answer
CThe visual shape of a histogram changes with bin width, and the default may not be optimal
Explanation
Histogram shape depends on bin width. The tutorial recommends experimenting because ggplot2's default may not be the most appropriate choice for the data.
- A
- 44
What broad pattern does the age histogram show about the passengers?
- A
Most passengers were older than 80, with almost none between 20 and 40
- B
All passengers were younger than 10
- C
Many passengers were between about 20 and 40, with fewer very young and older passengers
- D
Passenger ages were evenly distributed across all possible values
Correct answer
CMany passengers were between about 20 and 40, with fewer very young and older passengers
Explanation
The tutorial notes that a large share of passengers were between about 20 and 40, with a long tail toward older ages and comparatively few younger passengers.
- A
- 45
What does the age histogram indicate about children aboard the Titanic?
- A
The histogram cannot show whether any children were aboard
- B
Most passengers were younger than five
- C
No children were present in the dataset
- D
Some children were present, although they were not the majority of passengers
Correct answer
DSome children were present, although they were not the majority of passengers
Explanation
The histogram shows that children were present, though they made up a relatively small proportion of the passengers.
- A
- 46
What does adding
fill = survivedto an age histogram help reveal?- A
The exact name of every survivor in each age bin
- B
The number of missing ages in every individual row
- C
The relative counts of survivors and non-survivors within age bins
- D
The average ticket price for each passenger age
Correct answer
CThe relative counts of survivors and non-survivors within age bins
Explanation
Filling the histogram by survival outcome color-codes each age bin so the relative numbers who survived and perished can be compared.
- A
- 47
What does a box-and-whisker plot of age by survival status suggest in the tutorial?
- A
Age distributions were exactly identical for both survival outcomes
- B
Passengers who survived tended to be much older than those who perished
- C
Passengers who survived tended to be somewhat younger than those who perished
- D
Age had no relationship to survival in any part of the dataset
Correct answer
CPassengers who survived tended to be somewhat younger than those who perished
Explanation
The box-and-whisker plot suggests that survivors tended to be younger, although the difference shown by this plot is modest.
- A
- 48
How are the axes mapped in the tutorial's age box-and-whisker plot?
- A
Sex is on the x-axis and passenger ID is on the y-axis
- B
Ticket class is on the x-axis and fare is on the y-axis
- C
Age is on the x-axis and survival status is on the y-axis
- D
Survival status is on the x-axis and age is on the y-axis
Correct answer
DSurvival status is on the x-axis and age is on the y-axis
Explanation
The plot maps
survivedto the x-axis andageto the y-axis, comparing age distributions across the two outcomes. - A
- 49
How does the tutorial characterize a density plot in relation to a histogram?
- A
It replaces the data values with passenger names
- B
It presents similar distribution information in a smoothed form
- C
It is a bar chart with a different background theme
- D
It displays only category counts and cannot represent numeric data
Correct answer
BIt presents similar distribution information in a smoothed form
Explanation
The tutorial describes density plots as analogous to histograms, but smoothed rather than displayed as squared-off bars.
- A
- 50
What effect does an
alphavalue of 0.5 have on plotted density areas?- A
It makes them partially transparent so overlapping areas can be seen
- B
It removes the plot's coordinate system
- C
It doubles the number of plotted observations
- D
It changes the age bins to five-year intervals
Correct answer
AIt makes them partially transparent so overlapping areas can be seen
Explanation
The
alphasetting controls transparency. An alpha of 0.5 makes the plotted areas partly transparent, helping show overlaps. - A
- 51
What can faceting an age histogram by both sex and ticket class reveal?
- A
Only the overall average age of all passengers
- B
The exact cause of death for each individual passenger
- C
Only the total number of missing age values
- D
How age and survival patterns vary across combinations of sex and ticket class
Correct answer
DHow age and survival patterns vary across combinations of sex and ticket class
Explanation
Faceting by sex and
pclass, while filling by survival, lets the viewer compare age and survival patterns across combinations of these variables. - A
- 52
Why does the tutorial recommend looking at both density plots and histograms?
- A
Different visualizations can reveal or communicate aspects of the data differently
- B
The two plot types always produce identical shapes and conclusions
- C
Histograms cannot be used to study numeric variables
- D
A density plot is required to calculate missing ages
Correct answer
ADifferent visualizations can reveal or communicate aspects of the data differently
Explanation
The tutorial uses both to examine the data from different visual perspectives; in particular, the histogram makes some details, such as survival among young passengers, easier to see.
- A
- 53
Why should a non-data-savvy audience often be shown intuitive visualizations rather than complicated statistics first?
- A
Visualizations eliminate the need to check whether an interpretation is supported
- B
Non-data-savvy audiences cannot understand any numerical information
- C
Visual patterns can help the audience recognize relationships without needing advanced data expertise
- D
Summary statistics are always incorrect for business audiences
Correct answer
CVisual patterns can help the audience recognize relationships without needing advanced data expertise
Explanation
The tutorial argues that intuitive visualizations use human visual pattern recognition to make findings easier for a non-data-savvy audience to understand.
- A
- 54
Why does the tutorial use a business question as the starting point for choosing visualizations?
- A
The question helps determine which data fields and visual encodings are relevant
- B
The question automatically selects every plot's theme and font
- C
The question ensures every variable is numeric
- D
The question makes it unnecessary to understand the columns
Correct answer
AThe question helps determine which data fields and visual encodings are relevant
Explanation
Understanding the columns and what they mean is important for selecting data and mappings that can address a particular business question.
- A
- 55
What does the tutorial mean by focusing on the “20%” of ggplot2 that is useful “80%” of the time?
- A
It means every chart should omit 80% of its observations
- B
It claims that ggplot2 can only create one-fifth of all possible plots
- C
It prioritizes common, useful ggplot2 techniques rather than covering every advanced feature
- D
It recommends using only one-fifth of the available dataset
Correct answer
CIt prioritizes common, useful ggplot2 techniques rather than covering every advanced feature
Explanation
The tutorial deliberately focuses on commonly useful ggplot2 techniques and visualizations because time is limited, leaving advanced topics such as rich multi-layer plots for later.
- A
- 56
What does the tutorial suggest about using a single visualization to understand a dataset?
- A
A single chart always reveals every important relationship
- B
A chart's visual clarity guarantees its interpretation is complete
- C
Different visualizations should never be compared
- D
Using multiple types of visualizations can provide a more thorough view of the data
Correct answer
DUsing multiple types of visualizations can provide a more thorough view of the data
Explanation
The tutorial uses multiple plots, such as histograms and box plots, because each can convey different aspects of a pattern and together provide a more thorough view.
- A
- 57
What is the tutorial's interpretation of the “women and children first” hypothesis in the Titanic data?
- A
The data offer support, but age, sex, and ticket class together help explain survival patterns
- B
The data reject any relationship between age and survival
- C
The data show that sex alone completely explains every passenger's outcome
- D
The data show that every woman and child survived regardless of ticket class
Correct answer
AThe data offer support, but age, sex, and ticket class together help explain survival patterns
Explanation
The visualizations show higher survival among females and some children, while also indicating that age, sex, and ticket class together provide a richer explanation of survival patterns.
- A
- 58
What does the tutorial suggest about reusing ggplot2 code when making related charts?
- A
Code reuse is possible only for plots with no aesthetic mappings
- B
Every chart must be written from scratch because ggplot2 code cannot be reused
- C
Copying a plot automatically changes the underlying dataset
- D
Copying an existing plot and changing a few mappings or labels can make analysis efficient
Correct answer
DCopying an existing plot and changing a few mappings or labels can make analysis efficient
Explanation
The tutorial demonstrates copying an existing plot and modifying a small number of mappings, labels, or other elements to create related visualizations efficiently.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.