Learn R Programming

PMmisc (version 0.1.2)

pl.coplot: Scatter plot of x and y divided by z

Description

Generate 4 scatter plots of x and y divided by variable z, with a fitted line using a robust linear regression method.

Usage

pl.coplot(x,y,z,varN)

Arguments

x

:x-axis value

y

:y-axis value

z

:classification variable used to condition plots based on ascending values of z

varN

:variable name of z

Examples

Run this code
# NOT RUN {
pl.coplot(mtcars[,1], mtcars[,3], mtcars[,4], "hp")
# }

Run the code above in your browser using DataLab