Rating vs. cocoa percentages
Scatter plots are great for visualizing relationships between two numerical variables. Let's see if there is any relationship between chocolate ratings and cocoa percentages. After all, you need to choose the best chocolate bar possible!
The chocolates dataset and the DataFrames and Plots packages have been loaded for you.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Data Manipulation in Julia
คำแนะนำการฝึกหัด
- Create a scatter plot of
cocoavs.ratingcolumns. - Add a title
"Cocoa percentage vs. rating".
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Make a scatter plot of cocoa vs. ratings
____(____, ____)
# Add title
____!(____)