0UnitSales0OperatingProfitHypermarketsSupermarkets

  1. ### example 16 Scatter
  2. d1 <- dPlot(
  3. OperatingProfit~UnitSales,
  4. groups = c("SKU","Channel"),
  5. data = subset(data, Date == "01/12/2012"),
  6. type = "bubble"
  7. )
  8. d1$xAxis( type = "addMeasureAxis" )
  9. d1$yAxis( type = "addMeasureAxis" )
  10. d1$legend(
  11. x = 200,
  12. y = 10,
  13. width = 500,
  14. height = 20,
  15. horizontalAlign = "right"
  16. )
  17. d1