RegularPriceTier/Channel0UnitSalesSupermarketsHypermarkets

  1. ### example 24 Vertical Grouped Bubble Lollipop
  2. d1 <- dPlot(
  3. x = c("PriceTier","Channel"),
  4. y = "UnitSales",
  5. z = "OperatingProfit",
  6. groups = "Channel",
  7. data = subset(
  8. data,
  9. Date %in% c(
  10. "01/07/2012",
  11. "01/08/2012",
  12. "01/09/2012",
  13. "01/10/2012",
  14. "01/11/2012",
  15. "01/12/2012"
  16. )
  17. ),
  18. type = "bubble"
  19. )
  20. d1$xAxis( type = "addCategoryAxis" )
  21. d1$yAxis( type = "addMeasureAxis" )
  22. d1$zAxis( type = "addMeasureAxis" )
  23. d1$legend(
  24. x = 200,
  25. y = 10,
  26. width = 500,
  27. height = 20,
  28. horizontalAlign = "right"
  29. )
  30. d1