Learn R Programming

bifurcatingr (version 2.1.0)

bfa_scatterplot: Scatterplots for Bifurcating Autoregressive Data

Description

Draw scatterplots between observations at time t and the lagged observations from the given bifurcating autoregressive tree data.

Usage

bfa_scatterplot(z, p, ...)

Value

A single scatterplot when p=1 or a matrix of scatterplots when p>1.

Arguments

z

a numeric vector containing the tree data

p

an integer determining the order of the bifurcating autoregressive model that is believed to best fit the data

...

other graphical parameters that can be passed to plot() or pairs() (see par and pairs)

Examples

Run this code
z <- bfa_tree_gen(63, 1, 1, 2, 0.5, 0.5, 0.2, 10, c(0.7))
bfa_scatterplot(z,1)
z<-bfa_tree_gen(63, 2, 1, 2, 0.5, 0.5, 0.2, 10, c(0.7,0.2))
bfa_scatterplot(z,2)
bfa_scatterplot(z,2,lower.panel=NULL)

Run the code above in your browser using DataLab