Re: [R] custom function that plots other functions- problem
This request is clearly off-topic according to the Posting Guide. Please use the study assistance provided in the context of your assignment. --- Jeff NewmillerThe . . Go Live... DCN:
Re: [R] custom function that plots other functions- problem
Hello, Try the following. Note that argument 'how_many' is not needed, it can be derived from the length of the functions vector. plotter<- function(f, range, quality){ x <- seq(range[1], range[2], quality) y <- sapply(seq_along(f), function(.i) f[[.i]](x)) plot(x, y[, 1]) fo