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
Or with base:
data <- data.frame(time = seq(0, 23), noob = rnorm(24), plus = runif(24), extra = rpois(24, lambda = 1))
plot(extra ~ time,
data = data,
type = "l",
ylim = c(min(data[ ,-1]), max(data[ ,-1])),
ylab = "value")
lines(data$time, data$plus, col = "steelblue")
lines(data$time, data$noob, col = "pink")