Although, one must always themselves determine the range of x when using curve() in R, I was wondering how I could get the last x used (i.e., to =) after a curve() is executed in R?
For example, if I save a curve() as an object called cc, I can get the first x (i.e., from =) from the curve() using: cc$x[1] (see below). But how can I get the last x used in this curve()?
As an example ]
cc = curve(dchisq(6, df = 3, ncp = x ), from = 0, to = 10, col = 'red')
First.x.used.in.curve = cc$x[1]
Last.x.used.in.curve = ? ## How can I find this?