search for: linenames

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

2011 Jul 08
1
Referencing a vector of data labels in ggplot function
...39;, '#f7bd2e','#ec421e', '#f7bd2e') #If I use the line below and explicitly place plines, pTitle and col1 in the appropriate places #it will work fine. I want to use the line as written without the hashmark. #simple <- function(dframe){ withNames <- function(dframe, lineNames, plotName, colors){ p <- ggplot(dframe, aes(date, value, group = factor, color = factor)) p2 <- p + geom_line(size = 1) # + opts(title = plotName) p2 <- p2 + facet_grid(Facet~., scales = 'free') + # p2 <- p2 + geom_text(data = dframe[dframe[,'date'] == &...
2006 Jun 23
1
looping through a data frame
Hi- I am having trouble with the syntax of looping through the rows and columns of a data frame. I have a table with 17 observations for 84 lines at n=5-10 per line. So the table is ~700x17. I want to pull out the median and stdev for each line and put it in a dataframe with rowname = linename. So I have tried the following.... #read in the table input.table <- read.table(file =