So the problem I've run into is pretty basic, but I can't seem to solve it. I've been working with spatstat's F, G, J, K, and L functions, and I want to plot the F function for one point process on the same plot as the F function for a different point process. This has been easy, except that one of my point processes evaluates the function to r = 20 and the other to r = 15 ('r' is the independent variable on the x-axis). I want them to both be evaluated to the same r value, preferably 20. How would I do this? Essentially, this is the problem.
First I create the data frame containing the function's values:
mydata.Fest <- Fest(mydata)
Then, for some reason, this line of code:
plot(mydata.Fest)
Does not evaluate to the same 'r' (independent variable) value as this line of code:
plot(mydata.Fest, xlim=c(0,20), ylim=c(0,0.8))
Both plots go from xlim = c(0,20) and ylim = c(0,0.8), but for some reason the second one stops evaluating the function at x = 15. Considering that they are plotted from the same object, I haven't got a clue as to why they don't produce the same plot.
As a side note, I've been having another problem: when working with the F, J and K functions, I've found that adjusting the limits (particularly that of the independent variable) causes R to crash unexpectedly. If you've had this problem, or know of a solution, please let me know.
Thanks!