timelyportfolio / rcdimple

htmlwidgets for rCharts + dimple
http://www.buildingwidgets.com/blog/2015/3/18/week-11-dimple-as-htmlwidget
MIT License
28 stars 9 forks source link

Scatter plot showing only one point #12

Open jpmarindiaz opened 9 years ago

jpmarindiaz commented 9 years ago

Hi I am having some issues plotting a simple scatter plot with no groups. Only one point is plotted and it does not seem to be an actual point of the data set rather some aggregation. When group variables are provided it does work fine.

library(rcdimple)
dimple(cars,type="bubble",x="speed",y="dist") %>%
  xAxis(g, type = "addMeasureAxis") %>%
  xAxis(g, type = "addMeasureAxis")
timelyportfolio commented 9 years ago

dimplejs auto-aggregates. While this "feature" can be really helpful, it can also be incredibly annoying especially with scatter plots. The only way to avoid it is to force each point to be a unique group. I discussed a little bit here. Let me know if you still have questions, and I'll be happy to put more examples/discussion together.