Learn R Programming

PEIP (version 2.0-1)

plotconst: Plot constant model

Description

Plots a model in piecewise constant form over n subintervals, where n is the length of x.

Usage

plotconst(x, l, r, ...)

Arguments

x

model to be plotted

l

left endpoint of plot

r

right endpoint of plot

graphical parameters

Value

graphical side effects

Details

Used for plotting vector models

See Also

linesconst

Examples

Run this code
# NOT RUN {
zip = runif(25)
plotconst(zip, 0, 1 )
linesconst(runif(25) , 0, 1 , col='red' )



# }

Run the code above in your browser using DataLab