powered by
Plots the gradient curve that corresponds to a log-concave dnesity and a data set.
plotgradient(lcd, x, w = NULL, col="blue", knotcol=col, pch=1, lwd=1, lty=1, ...)
an object of class lcd.
lcd
a vector storing the observations.
a vector of frequencies (weights) of values stored in x. If w=NULL, w = 1 is used for each value in x.
x
w=NULL
w = 1
color of lines.
color of knots.
point type for knots.
width for the gradient curve.
line type for the gradient curve.
further arguments passed to or from other methods.
cnmlcd, lcd, new.lcd, x.weight.
cnmlcd
new.lcd
x.weight
# NOT RUN { data(logreturn) r = cnmlcd(logreturn) plot(r$lcd, logreturn) # Density plotgradient(r$lcd, logreturn) # Gradient # }
Run the code above in your browser using DataLab