holtzy / D3-graph-gallery

A collection of simple graphics made with D3.js
https://www.d3-graph-gallery.com
MIT License
789 stars 237 forks source link

scatter plot dot size misleading #106

Open mkborregaard opened 4 months ago

mkborregaard commented 4 months ago

Thanks for an awesome resource, which I use for teaching a BSc level R course.

In this example: https://r-graph-gallery.com/5-correlation-of-discrete-variables.html the first plot illustrates magnitude of a number by multiplying it by cex. However, the cex parameter appears to control the radius of the circle, meaning that the area will be proportional with the number ^2. I'd argue this misrepresents the actual magnitudes.

yangdanny97 commented 4 months ago

I think this is the wrong repo, the R graph gallery is here: https://github.com/holtzy/R-graph-gallery