Is there a way to define the entire real line as a domain of a function in R? Up until now when I wanted to plot a function, I would first define x using the command:
> x <- seq(a,b, by=0.01)
where a
and b
are numbers enclosing the interval. And then
> plot(x,f(x))
where f(x)
is a prespecified function.
Is there a way to define the real line as the domain and skip step 1?