1. 学ぶ
  2. /
  3. コース
  4. /
  5. Choice Modeling for Marketing in R

Connected

演習

Plotting choice shares

Let's finish this chapter by making a plot of the choice shares we just produced. We stored the choice shares in a column called share within the data frame called shares. We can plot shares$share using barplot(). If you are unfamilar with barplot(), you can type ?barplot to view the documentation.

指示

100 XP

Set the first input for the barplot function to shares$share.