Labels, title, and legend
📖 Scenario: You are analyzing sales data for two products over a week. You want to create a clear line plot to compare their sales trends.
🎯 Goal: Create a line plot with sales data for two products. Add labels for the x-axis and y-axis, a title for the plot, and a legend to identify each product's line.
📋 What You'll Learn
Create vectors for days and sales data for two products
Add x-axis label as 'Day of Week'
Add y-axis label as 'Sales Units'
Add a title 'Weekly Sales Comparison'
Add a legend with labels 'Product A' and 'Product B'
💡 Why This Matters
🌍 Real World
In business, clear charts help teams understand sales trends quickly and make better decisions.
💼 Career
Data analysts and scientists often create plots with labels, titles, and legends to communicate insights clearly.
Progress0 / 4 steps