CODAP-like dot plots in R

Tags:
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #86 Score: 0
    Anonymous
    Inactive

    I have been using TI-nspire calculators in my statistics classes, and really value the Fathom visualizations embedded in it. To help my students transition to larger data sets I am writing “cover” functions for R that duplicate TI-nspire procedures there, producing the results they’re used to from the syntax they have already learned.

    I really like the dotplots that Fathom, the TI-nspire, and now CODAP produce. And I’m trying to figure out a way to mimic them with one of the plotting facilities available within R.

    Can you offer me any advice regarding their construction? Or pointers to where I can learn more about jittering, which I’m guessing is central to producing them?

    #89
    Anonymous
    Inactive
    The “stacked dot plots” in CODAP, Fathom, and TI-nspire all have the same algorithm (of course). The idea is that you allocate ‘bins’ along the axis, each with a width equal to the diameter of a point in pixels. Then you count how many points will be in each bin and find the maximum. Determine if, for this tallest bin, stacking the points one on top of the next will go off the top. If so, compute the ‘overlap’ of points required to bring the tallest bin back inside the plot. Now you can compute a coordinate for each point.
    You can see this in detail in the github repository for CODAP, in the file dot_plot_view.js, in the routine _zeroBinArray.
    Like you, I have only grown more fond of these dot plots over the years. And other people seem also to have become accustomed to them, in spite of the often weird shapes they make.
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.