| plot.PP {QRMlib} | R Documentation |
creates a picture of an unmarked point process.
plot.PP(x, ...)
x |
a point process object of class PP which must be unmarked |
... |
further parameters which may be passed to the plot function (see R help about the plot function for further information) |
Creates an appropriate plot on graphical device. The input variable x will be internally separated into starttime and endtime values to pass to plot.stepfun()
documentation by Scott Ulman for R-language distribution
data(sp500);
sp500.nreturns <- -mk.returns(sp500);
window <- (seriesPositions(sp500.nreturns) >
timeDate("12/31/1995",format = "%m/%d-/%Y")) &
(seriesPositions(sp500.nreturns) <
timeDate("01/01/2004",format = "%m/%d/%Y"));
sp500.nreturns <- sp500.nreturns[window];
#The following functions are contained in functionsHawkes.R.
#Plot the 100 largest exceedances. Create an MPP (marked point process) class
tmp <- extremalPP(sp500.nreturns,ne=100);
#Be sure to graph with plot.PP instead of plot.MPP:
tmp2 <- unmark(tmp);
plot.PP(tmp2);