From the course: SQL Server Machine Learning Services: R

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Create a pie chart

Challenge: Create a pie chart

From the course: SQL Server Machine Learning Services: R

Start my 1-month free trial

Challenge: Create a pie chart

(lively music) - [Instructor] For the third challenge of this course, I'd like you to explore R's plotting functionality. In the chapter four folder of the exercise files is a file called Challenge-Pie-Start.txt. It contains a select query that'll calculate the percent of countries in each region found in the Wide World Importer's database. I'd like you to use what you've seen about creating x y plots and bar plots and apply that to the creation of a pie chart to visualize this data. The syntax will largely be the same as what you've seen in this chapter for the other plot types, but there are some additional arguments that you can apply to pie charts that you can use. Take a look through the documentation at this URL to get some inspiration. I'd encourage you to take your time and create a chart that you're happy with. Plan on spending about 15 minutes to play around with the different options to see what effect…

Contents