Re: [R] ggplot/time series with indicators question

2010-02-01 Thread Dennis Murphy
Hi: On Mon, Feb 1, 2010 at 8:05 PM, Chuck White wrote: > Thanks Dennis. That is *exactly* what I am looking for. > > Two questions: > 1. how can I get the markers to be filled? I see that geom_point has a > property called fill which is the name of a color. Is there a way to get the > color name

Re: [R] ggplot/time series with indicators question

2010-02-01 Thread Chuck White
Thanks Dennis. That is *exactly* what I am looking for. Two questions: 1. how can I get the markers to be filled? I see that geom_point has a property called fill which is the name of a color. Is there a way to get the color names from p? I tried to set fill to TRUE hoping it would infer from bo

Re: [R] ggplot/time series with indicators question

2010-02-01 Thread Dennis Murphy
Hi: Try this: Your ind.df didn't include the values, so I redefined it such that it contained all of the data in data.all plus the indicators you set up in ind.df. ind.df <- cbind(data.all[,1:3],ind.df) # Using this ind.df as the data frame, set up the indicators so that all you # need to do is

[R] ggplot/time series with indicators question

2010-02-01 Thread Chuck White
Hello, I am trying to plot time-series data with certain weeks highlighted using symbols. require(ggplot2) #plotting time series data timescale <- seq(as.Date("01/01/09","%m/%d/%y"), length.out=12, by=7) data.all <- data.frame( id = c(rep('111',12),rep('222',12),rep('333',12)), week=c(ti