Ticketverkäufe_Freiburg_Hauptbahnhof_1978–1988.svg


Summary

Description
English: Tickets sold at Freiburg Hauptbahnhof.
Deutsch: Anzahl der verkauften Fahrkarten am Freiburger Hauptbahnhof (inklusive der Haltepunkte Basler Straße, Zähringen und Herdern).
Date
Source Own work
Author El Grafo
This W3C-unspecified chart was created with R .

Licensing

Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication .
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Data

save as data.csv :

"year","tickets"
1978,1303000
1979,1409000
1980,1585000
1981,1609000
1982,1443000
1983,1441000
1984,1456000
1985,1509000
1986,1472000
1987,1411000
1988,1338000

R-code

###############
## read data ##
###############

## read the original time-series: this one is needed for the dashed grey line, connecting all the dots
data <- read.csv("data.csv", sep=",")
data[,2] <- data[,2]/1000000                  #devide data by 1000000 to get "millions" on the y-Axis
attach(data)

##############
## plotting ##
##############
## un-comment for svg-output:
#svg(file="test.svg", width=10, height=7) #note: this may not work on MS Windows, try Cairo instead

par(cex=1.2)

## plot the blue lines
plot(tickets ~ year,
   type="l",
   col="blue",
   xlab="Jahr",
   ylab="verkaufte Fahrkarten (Mio.)",
   bty="l",
   lwd=3)

## add the dots:
points(tickets ~ year,
   pch=16,
   col="blue")

##un-comment for svg-output:
#dev.off() 

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

28 February 2010