r - ggplot plotting the y-axis values in wrong order -


i'm looking @ 2 basic columns in r. year , oil price. want plot them not know why not plotting y axis values correctly.

price = read.csv("data/bp_oilprices.csv") colnames(price) = c("year","dollars_of_the_day") qplot(as.numeric(price$year),as.numeric(price$dollars_of_the_day)) 

some of data

data

plot output (sorry know x axis bit messy @ moment)

plot output

on y-axis notice how 109.66 under 11.53 111.67 under 12.72. cannot figure out why happens. great thanks.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -