I was wondering how to create a vector with equivalent spacing between its consecutive elements in R? In Matlab, I can do [start:step:end].
Also if I want to plot a function with analytical form, do I have to evaluate the function on some sample points in its domain and plot these pair of points? Is there a R function that can take the function form and a set in its domain as arguments, and plot the graph of the function on the set?
Thanks and regards!