In an effort to share some source code (but without taking the time to explain it), here’s some Java source code that I just used to create a JFreeChart chart/graph of some data that I use in my Android football game:
If you ever wondered what Digital and Print book sales look like for a technical book (a computer programming book, in this case), here you go. This is a slightly cleaned up chart that O’Reilly provides to me for sales of the Scala Cookbook over time, showing eBook sales vs the printed book sales.
I needed to use Gnuplot a little bit over the last few days, mostly to create 2D line charts, and these are my brief notes on how to get started with Gnuplot. If you haven’t used it before, it’s a pretty amazing tool.
Jumping right in ...Back to top
Use MacPorts or Homebrew to install Gnuplot on Mac OS X systems:
port install gnuplot brew install gnuplotBack to top
Sample data files
My examples use the following 2-column and 4-column data files:Back to top
“A visual guide to graph traversal algorithms” is a fun website. As their docs state, “You can draw a new node by clicking anywhere on the visualization canvas. To add an edge between nodes, drag your mouse from one node to another.”
I’m sure there must be other ways to mathematically see these differences, but I agree with the general concept that it can be easy to be misled by data. (Image from this Twitter page.)
Per this article, the #1 predictor of career success is not necessarily who you know, but how many people you know. (Though I’m sure it doesn’t hurt to be born with a silver spoon in mouth.)
In the amazing world of statistics, Internet Explorer market share correlates extremely well to murder rate. Image from this Twitter link.
This map shows the ground temperatures in the United States on September 30, 2104. The temperatures range from 113 degrees F (yellow) to “freezing,” which is shown in white.
This article shares the graph shown that says the “War on Drugs” isn’t working. That appears to be true, but unfortunately you can’t really know that it’s true because there is no control group. What I mean is that we have no idea what the drug addiction rate would be like if we had not spent all this money on this so-called war. Maybe the rate would be 1.3%, or maybe it would be 5%; we don’t know.