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

2010-11-23 Thread Jack Johnson
Dennis, Thanks for your answer. That is working nicely! Br, Jack 2010/11/23 Dennis Murphy > Hi: > > Borrowing an idea from a post by Baptiste Auguie a few weeks ago on the > ggplot2 list, try this: > > http://groups.google.com/group/ggplot2/browse_thread/thread/46a78ab3315fdb7/f2ad305ae935a862

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

2010-11-23 Thread Dennis Murphy
Hi: Borrowing an idea from a post by Baptiste Auguie a few weeks ago on the ggplot2 list, try this: http://groups.google.com/group/ggplot2/browse_thread/thread/46a78ab3315fdb7/f2ad305ae935a862?lnk=gst&q=formatter#f2ad305ae935a862 mysep <- function(x, ...) format(x, big.mark = ' ', trim = TRUE,

[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()