ruk·si

📊 R
Step Chart

Updated at 2011-09-04 23:45

Creating a step chart in R.

# Average price of 500g of coffee in Finland.

plot(
    x= coffee$Vuosi,
    y= coffee$Hinta,
    type= "s",
    ylim= c(0,3.2),
    xlab= "Year",
    ylab= "Price (€)",
    main= "Average price of 500g coffee package in Finland.",
    sub= "by Tommi Laine, source www.stat.fi"
)