![]() Geom_bar() is the geom function that uses bars to create a bar chart. The correct code is ggplot(data = best_trimmed_flavors_df) + geom_bar(mapping = aes(x = Company.Location)). Add the code chunk that lets you create a bar chart with the variable Company.Location on the x-axis.Ĭorrect: You add the code chunk geom_bar(mapping = aes(x = Company.Location)) to create a bar chart with the variable Company.Location on the x-axis. Assume your first line of code is: ggplot(data = best_trimmed_flavors_df) + You want to use the geom_bar() function to create a bar chart. You decide to use ggplot2 to create your visuals. Your team assigns you the task of creating a series of visualizations based on requests from the Chocolate and Tea management team. Now that you’ve cleaned and organized your data, you’re ready to create some useful data visualizations. The value 75% for cocoa percent appears in row 1 of your tibble. The new data frame will show all the values of Cocoa.Percent greater than or equal to 75, and all the values of Rating greater than or equal to 3.9. The >= operator signifies “greater than or equal to.” ![]() The filter() function lets you filter your data frame based on specific criteria.Ĭocoa.Percent and Rating refer to the variables you want to filter. The correct code is best_trimmed_flavors_df % filter(Cocoa.Percent >= 75, Rating >= 3.9). Which of the following benefits would you include in your summary? Select all that apply.Ĭorrect: The code chunk filter(Cocoa.Percent >= 75, Rating >= 3.9) lets you filter the data frame for chocolate bars that contain at least 75% cocoa and have a rating of at least 3.9 points. Your supervisor asks you to write a short summary of the benefits of using R for the project. Given the data and the nature of the work you will do for your client, your team agrees to use R for this project. Your team has received a dataset that features the latest ratings for thousands of chocolates from around the world. This data will help them create their next chocolate bar menu. In particular, they’d like to know which countries produce the highest-rated bars of super dark chocolate (a high percentage of cocoa). They’ve asked you to collect and analyze data on the latest chocolate ratings. The management team regularly updates the chocolate bar list in order to align with the latest ratings and to ensure that the list contains bars from a variety of countries. They also continually adjust the menu to make sure it reflects the global diversity of chocolate production. Chocolate and Tea aims to serve chocolate bars that are highly rated by professional critics. ![]() Chocolate bar sales are the main driver of revenue. The encyclopedic list of chocolate bars is the basis of Chocolate and Tea’s brand appeal. Their diverse selection includes everything from plantain milk chocolate, to tangerine white chocolate, to dark chocolate with pistachio and fig. The eatery combines an extensive menu of fine teas with chocolate bars from around the world. ![]() Demonstrate an understanding of the uses of R Markdown templates.Access and use a customized R Markdown template included in an R package.Create and outline a structure for an R Markdown notebook.Describe the R Markdown notebooks and their use to document R programming code.Use basic formatting in R Markdown to create structure and emphasize content.Incorporate R code chunks into R Markdown notebooks.Demonstrate an understanding of how to export R Markdown notebooks.With the help of this course and its instruction on R Markdown, you will be able to present your analysis reports for maximum impact effectively. Additionally, you’ll find out how to include tables, images, and other elements in a report to make it even more interactive. You will learn how to format and export your data using this method and incorporate R code chunks into your documents. With this report-generating tool, you can generate reports that are dynamic and tailored to your data analysis needs. This part of Coursera’s Google Data Analytics Professional Certificate: Programming with R focuses on using R Markdown to create interactive documents.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |