I am building an R function to plot a few lines from a data table, I don\'t understand why this is not working?
data = read.table(path, header=TRUE); plot(da
Have a look at the ggplot2 package
library(ggplot2) library(reshape) data <- data.frame(time = seq(0, 23), noob = rnorm(24), plus = runif(24), extra = rpois(24, lambda = 1)) Molten <- melt(data, id.vars = "time") ggplot(Molten, aes(x = time, y = value, colour = variable)) + geom_line()