search for: monthnum

Displaying 2 results from an estimated 2 matches for "monthnum".

2009 Oct 09
1
Placing text in a ggplot
...tting a similar graph to work yesterday the day before yesterday with Baptise A's help. Can anyone suggest what I am doing wrong. Data set is below code. Thanks. Code ========================================================================= line.count <- c(1,cumsum(as.vector((table(year$monthnum))))) namposts <- line.count[1:12] temprange <- range(year[,4], na.rm=TRUE) mlabs <- month.name[1:12] p <- ggplot(year, aes(duration, temps, colour=month)) + geom_line() + ylab("Temperature (C)") + xlab("Mean Daily Temperatures") + opts(legend.positio...
2003 Sep 07
4
data manipulation
Hi, I am new to R, coming from a few years using Stata. I've been twisting my brain and checking several R and S references over the last few days to try to solve this data management problem: I have a data set with a unique patient identifier that is repeated along multiple rows, a variable with month of patient encounter, and a continous variable for cost of individual encounters. The data