A President's Party by Year!


2013-11-13

This is a simple example while I am learning to use JuliaStudio.

Party by Year

Data Source: Guardian's DataStore

Code in JuliaStudio:

using DataFrames
df = readtable("prez.csv")

using Cairo
using Gadfly
p = plot(
    df,
    y="Party",
    x="Years (after inauguration)",
    Scale.x_continuous(
        minvalue=1800,
        maxvalue=2000))

draw(PNG("plot.png", 6.5inch, 3inch), p)