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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -