[R] importing date vector with read.table

2010-12-10 Thread Jack Johnson
Hi, I understand this should be an easy task but I am still struggling a bit to read a .txt file with a date vector. My code is as below: data-read.table(file.choose(),header=TRUE,sep=\t,dec=,,colClasses=c(Date,numeric,numeric,numeric)) But I am getting an error: Error in charToDate(x) :

[R] format y-axis values in ggplot

2010-11-23 Thread Jack Johnson
Hi, I'd like to change scientific number formatting, 1,E+06, in y-axis values to 1 000 000 (number with 1000 separator). How to do this in ggplot..? I tried to use scale_discrete but couldn't get it to work. Below is a code I have this far: p-ggplot(Data,aes(x=Date,y=PRINCIPAL)) p+geom_point()

Re: [R] format y-axis values in ggplot

2010-11-23 Thread Jack Johnson
at 4:13 AM, Jack Johnson jackjohnson10...@gmail.com wrote: Hi, I'd like to change scientific number formatting, 1,E+06, in y-axis values to 1 000 000 (number with 1000 separator). How to do this in ggplot..? I tried to use scale_discrete but couldn't get it to work. Below is a code I have