Found in 9 comments
dmos62 · 2018-10-02 · Original thread
My interest in the different paradigms and approaches to data visualization stems from some problems I'm working on having a lot of parallels with how plotting library APIs work.

Personally, my main encounter with plotting was in Python. I'm not a big fan of matplotlib, I got the impression that with increasing plot complexity, code complexity grew exponentially. Then there's bokeh [0], which I preferred to matplotlib, due to it being more declarative. HoloViews [1] is more declarative than both matplotlib and bokeh, and boasts that "usually [you can] express what you want to do in very few lines of code, letting you focus on what you are trying to explore and convey, not on the process of plotting". I've not used HoloViews yet.

Then I've heard of R's ggplot [2], which is based on (or inspired by?) The Grammar of Graphics [3]. This books is definitely something I want to check out.

Vega [4], an “assembly language” for visualization, is neither here nor there as far as this discussion goes, but nonetheless I just stumbled upon it and I'm quite optimistic about the initiative. Maybe someone will not have heard of it.

[0] [1] [2] [3] [4]

perturbation · 2017-05-27 · Original thread
ggplot2 was inspired by:

and Hadley Wickham wrote about it in

I'm no expert, but I think that one of the main ideas is to separate the elements of making a plot from the way that the data is presented. For example, in ggplot2, you have the data that will go into the graph, the type of plot (or "geometry") that defines how the data are presented (scatterplot, bar plot, etc.), and then various "layers" that can be added that affect style.

In order to split a plot into subplots, you simply define how it is to be faceted (what column should be used to define groups). Grammar-of-graphics moves plotting away from the "turtle graphics" model and lets you specify what should be done. Then ggplot figures out how to do it, kind of like SQL vs. writing for loops to retrieve information.

adamnemecek · 2017-01-16 · Original thread
I'll give you a couple. Note that some of these are rehashes of my earlier comments.

# Elements of Programming

This book proposes how to write C++-ish code in a mathematical way that makes all your code terse. In this talk, Sean Parent, at that time working on Adobe Photoshop, estimated that the PS codebase could be reduced from 3,000,000 LOC to 30,000 LOC (=100x!!) if they followed ideas from the book

Another point of his is that the explosion of written code we are seeing isn't sustainable and that so much of this code is algorithms or data structures with overlapping functionalities. As the codebases grow, and these functionalities diverge even further, pulling the reigns in on the chaos becomes gradually impossible.

Bjarne Stroustrup (aka the C++ OG) gave this book five stars on Amazon (in what is his one and only Amazon product review lol).

This style might become dominant because it's only really possible in modern successors of C++ such as Swift or Rust, not so much in C++ itself.

# Grammar of graphics

This book changed my perception of creativity, aesthetics and mathematics and their relationships. Fundamentally, the book provides all the diverse tools to give you confidence that your graphics are mathematically sound and visually pleasing. After reading this, Tufte just doesn't cut it anymore. It's such a weird book because it talks about topics as disparate Bayesian rule, OOP, color theory, SQL, chaotic models of time (lolwut), style-sheet language design and a bjillion other topics but always somehow all of these are very relevant. It's like if Bret Victor was a book, a tour de force of polymathical insanity.

The book is in full color and it has some of the nicest looking and most instructive graphics I've ever seen even for things that I understand, such as Central Limit Theorem. It makes sense the the best graphics would be in the book written by the guy who wrote a book on how to do visualizations mathematically. The book is also interesting if you are doing any sort of UI interfaces, because UI interfaces are definitely just a subset of graphical visualizations.

# Scala for Machine Learning

This book almost never gets mentioned but it's a superb intro to machine learning if you dig types, scalable back-ends or JVM.

It’s the only ML book that I’ve seen that contains the word monad so if you sometimes get a hankering for some monading (esp. in the context of ML pipelines), look no further.

Discusses setup of actual large scale ML pipelines using modern concurrency primitives such as actors using the Akka framework.

# Hands-On Machine Learning with Scikit-Learn and TensorFlow: Concepts, Tools, and Techniques for Building Intelligent Systems

Not released yet but I've been reading the drafts and it's a nice intro to machine learning using modern ML frameworks, TensorFlow and Scikit-Learn.

# Basic Category Theory for Computer Scientists

Not done with the book but despite it's age, hands down best intro to category theory if you care about it only for CS purposes as it tries to show how to apply the concepts. Very concise (~70 pages).

# Markov Logic: An Interface Layer for Artificial Intelligence

Have you ever wondered what's the relationship between machine learning and logic? If so look no further.

# Machine Learning: A Probabilistic Perspective (Adaptive Computation and Machine Learning series)

Exhaustive overview of the entire field of machine learning. It's engaging and full of graphics.

# Deep Learning

You probably have heard about this whole "deep learning" meme. This book is a pretty self-contained intro into the state of the art of deep learning.

# Designing for Scalability with Erlang/OTP: Implement Robust, Fault-Tolerant Systems

Even though this is an Erlang book (I don't really know Erlang), 1/3 of the book is devoted to designing scalable and robust distributed systems in a general setting which I found the book worth it on it's own.

# Practical Foundations for Programming Languages

Not much to say, probably THE book on programming language theory.

# A First Course in Network Theory

Up until recently I didn't know the difference between graphs and networks. But look at me now, I still don't but at least I have a book on it.

· 2017-01-15 · Original thread
6502nerdface · 2015-10-14 · Original thread
> > And it's really hard to beat ggplot.

> To be honest, matplotlib seems a good contender to me (

They're quite different, though, and I can see why many prefer ggplot. It's a declarative, domain-specific language that implements a Tufte-inspired "grammar of graphics" (hence the gg- in the name; see section 1.3 of [1], and [2,3]) for very fast and convenient interactive plotting, whereas matplotlib is just a clone of MATLIB's procedural plotting API.




taylorbuley · 2013-07-26 · Original thread
If you're looking for a more quantitative version of Tufte, I highly recommend Cleveland ( and Wilkinson (
bhntr3 · 2012-12-26 · Original thread
I took Edward Tufte's course: That's interesting but most valuable is probably his books.

I was planning to read Interactive Data Visualization for the Web I think that's mostly an introduction to the tool (D3) but maybe has some info on visualization itself.

Also, this tutorial was an easy intro to D3: Hopefully, the author continues to add to it.

Mike Bostock (author of D3) has some interesting blogs at: and also some great visualizations at

A PHD in my office recommended The Grammar Of Graphics It seems much more technical and statistical but could be an interesting set of ideas to synthesize. I'm planning on borrowing his copy.

Mike Bostock's stuff also led me to this page on Hive Plots which is a pretty cool description of how to do network visualization better:

And I like Flowing Data as a blog:

This is all of course prior to actually having studied it. I'm hoping using these resources and playing with some toy projects will lead me down further paths. (Assuming I have time which I, of course, probably won't.)

chucklarge · 2012-06-02 · Original thread
There is this as well

The The Grammar of Graphics (Statistics and Computing) by Leland Wilkinson is also great, though more focused on building graphing systems. I believe it is the inspiration for a lot of d3.js

Anon84 · 2010-04-14 · Original thread
Leland Wilkinson's "The Grammar of Graphics" is also excellent and fully implemented in the R programming language/statistics package ( )
View this Book on Amazon