search for: linenam

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

Did you mean: linenum
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 = "First_run_all.txt", header = T) #pull out the line names line.run <- unique(input.table$Line) #pull out the column names except for Line el.names <- names(input.table[2:18]) #now I want t...