Re: [R] Time Series in R with ggplot2

2011-02-11 Thread Ista Zahn
Hi, You probably have Year stored as a factor. See below. totsoc <- structure(list(Location = structure(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L), .Label = "SOUTH", class = "factor"), Year = 1998:2007, Value = c(29L, 20L, 32L, 29L, 25L, 28L, 27L, 28L, 22L, 31L )), .Names = c("Location", "Y

[R] Time Series in R with ggplot2

2011-02-11 Thread info
Hi Folks, First, the important information. > sessionInfo() R version 2.12.1 (2010-12-16) Platform: i386-pc-mingw32/i386 (32-bit) Second, my problem. I have a series of data sets comprised in the following format. > totsoc Location Year Value 1 SOUTH 199829 2 SOUTH 199920