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
plot output (sorry know x axis bit messy @ moment)
on y-axis notice how 109.66 under 11.53 111.67 under 12.72. cannot figure out why happens. great thanks.
Comments
Post a Comment