1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Equity Valuation in R

Connected

अभ्यास

Visually Inspecting the Data

You are given historical revenue (hist_rev) and projected revenue (proj_rev) data for a company. Create a bar chart of data, which includes coloring the historical and projected revenues differently, as well as adding a chart title and legend. The revenue data is in the object rev, which is stored in memory.

निर्देश

100 XP
  • Create a bar chart, color historical data red and projected data blue, and add the title "Historical vs. Projected Revenues".
  • Create a legend with data labels "Historical" and "Projected" with colors matching the bars.