Learn R Programming

spsurvey (version 4.1.4)

interp.axis: Create Right-Side y-Axis Lables for a CDF Plot

Description

This function creates right side y-axis labels for a CDF plot. It assumes that arguments cdfest.l and cdfest.r are strictly increasing. If argument yl.lab is less than the first cdfest.l vlaue, then the funciton assumes 0 for both cdfest.l and cdfest.r.

Usage

interp.axis(yl.lab, cdfest.l, cdfest.r)

Arguments

yl.lab

Vector of left side y-axis labels, which are the basis for interpolating cdfest.r values.

cdfest.l

Vector of CDF estimates corresponding to the left side y-axis.

cdfest.r

Vector of CDF estimates corresponding to the right side y-axis.

Value

A numeric vector consisting of the right side y-axis labels.