Data Visualization with R | Week 4

Course link : https://www.coursera.org/learn/data-visualization-r

These are answers for Data Visualization with R Week 4

Final Exam

1. Which function will return an object that represents a world map?

addMap()

addTiles()

leaflet.map()

leaflet()


2. What type of chart is a scatter plot?

Comparison

Part to Whole

Correlation

Trend


3. What is the difference between a histogram and a bar chart?

A histogram displays the frequency of categorical data, whereas a bar chart displays either ordinal or categorical data.

A histogram displays the frequency of ordinal data, whereas a bar chart displays categorical data only.

A histogram displays the frequency of categorical data whereas a bar chart displays ordinal data only.

A histogram displays the frequency of either categorical or ordinal data; whereas a bar chart displays ordinal data only.


4. Which package should be used to create a scatter plot?

ggplot2

qplot

ggplot

geom_plot


5. In a box plot, in which quartile does 75% of the sorted data fall below?

First quartile

Third quartile

Fourth quartile

Second quartile


These are answers for Data Visualization with R Week 4

6. Which function should you use if you want to add markers to display a specific location on a map that you draw?

addCircles()

addProviderTiles()

addTiles()

addMarkers()


7. What are trend charts used for?

To show the distribution of continuous variables.

To observe the inner nature of a subject in different phases and states of a process.

To visualize differences between elements.

To show the inner subdivision of a value among different categories or groups.


8. Which statement is true about the interquartile range of a data set?

It contains the outliers in a sorted data set.

It contains the middle 50% of the sorted data.

It is calculated using the mean.

It is displayed in a histogram.


9. What is the maximum number of bins for sliderInput()?

50

100

10

25


10. Which of the following is NOT the purpose of data visualization?

A story conveyed through visuals

Patterns, trends, and anomalies in data

Represent data in the form of graphs, charts, plots, etc.

Preprocess and clean the data


These are answers for Data Visualization with R Week 4

11. Which graph type helps you visualize the count of categorical or grouped data?

Histograms

Line plots

Scatter plots

Bar charts


12. Which package can you use for extra themes and color scales for ggplot2?

tidyverse

ggthemes

tidymodels

ggplot


13. Which function is used to construct an initial empty UI when creating a Shiny app?

titlePanel()

mainPanel()

sidebarLayout()

fluidPage()


14. Which of the following is NOT a parameter to the varSelectInput() function?

The data frame from which the column names will be retrieved

The input ID that is used to access the value

The data set variable name

The display label for the control


15. Using the ggplot() method, which geometry function do you need to use to create a scatterplot?

geom_bar()

geom_dot()

geom_scatter()

geom_point()


These are answers for Data Visualization with R Week 4

16. Which statement is true regarding box plots?

It divides the data set into quartiles.

It displays categorical data.

It displays the mean of the data set.

It obscures the outliers in the data set.


17. Which function arranges elements in a layout with an area for navigation and a main area?

navigationLayout()

navLayout()

navbarLayout()

sidebarLayout()


18. Which statement best describes facets?

Facets subdivide an ordinal data set into panels based on a categorical or discrete variable.

Facets are used to display ordinal data.

Facets are a type of trend chart.

Facets can only be used with histograms.


19. Which chart type shows the inner subdivision of a value among different categories or groups?

Part to whole charts

Comparison charts

Correlation charts

Relationship charts


20. Which chart is a type of comparison chart?

Histogram

Bar chart

Scatterplot

Stacked bar chart


These are answers for Data Visualization with R Week 4

21. Which data visualization displays information about the distribution of a population?

Pie Chart

Line Plot

Histogram

Scatter Plot


22. Which of the following is NOT a Shiny layout function?

fluidRow()

verticalLayout()

sidebarPanel()

flowLayout()


23. What does the addTiles() function allow a user to do?

Allows the user to identify a location with longitude and latitude coordinates.

Allows the user to overlay a coordinate grid on a map.

Allows the user to zoom in on the map.

Allows the user to add a marker on the map.


24. Which chart is a type of trend chart?

Line Plot

Scatter plot

Bar Chart

Pie Chart


25. Which statement best describes the varSelectInput() function?

Provides a title to the side bar panel.

Creates the text for radio buttons.

Creates a drop-down menu.

Creates a list of values from a data set’s column names.


These are answers for Data Visualization with R Week 4



These are answers for Data Visualization with R Week 4

More in this line: https://progies.in/answers/summer-training-2022/data-visualization-with-r

Latest on Progies: –

The content uploaded on this website is for reference purposes only. Please do it yourself first.