This is a work in progress—-trying to use different plotting methods on historical NYSE prices. I got a large file from the NYSE and selected only 1996. Otherwise the graph looks very cluttered.
First, read in your data and check the names and load the ggplot2 library
ny1996 <- read.csv("C:/Users/Stephen/Desktop/ny1996.csv")
names(ny1996)
[1] "Date" "Price"
library(ggplot2)
This is a timeseries so obviously, getting the dates right is crucial. Use the as.Date command to format the dates vector
ny1996$Date <- as.Date(ny1996$Date)
Then draw the plot
qplot(Date, Price, data = ny1996, geom = "line", colour = "red", main = "1996 NYSE")