Skip to content

An implementation of The Grammar of Graphics for .Net

License

Notifications You must be signed in to change notification settings

aseminjakiw/GrammarGraph

 
 

Repository files navigation

GrammarGraph

This repository is about investigating how The Grammar of Graphics can be implemented in a statically typed language, like F# or C#.

Motivation

Leland Wilkinson describes in his book The Grammar of Graphics a declarative approach to creating graphics or charts from data. Hadley Wickham created an implementation of this in the ggplot2 package for R. Learning ggplot2 changes the way one thinks about graphics. The declarative syntax of this approach gives you a very potent tool for analyzing and visualizing data, without splitting data into arrays or handling indices in for-loops.

I spent quite some time thinking about how one would implement the Grammar of Graphics in a statically typed language. I plan to investigate some ideas in this project.

Any ideas or contributions are highly appreciated. Let us see where the journey leads to.

Data

You need one important thing to test and demonstrate a chart engine and that is data. ggolpt2 does an ingenious and simple thing: It ships some datasets that are used throughout the documentation.

I started by creating a GrammarGraph.Data assembly that contains the Diamonds and the MPG datasets. I'm trying to figure out the proper way to cite these data sources. I hope for now the links will do.

About

An implementation of The Grammar of Graphics for .Net

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • F# 100.0%