Learn R Programming

PMmisc (version 0.1.0)

fcoplot: 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

fcoplot(x,y,z,varN)

Arguments

x

:x-axis value

y

:y-axis value

z

:classification variable used to divided x and y

varN

:variable name of z

Examples

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

Run the code above in your browser using DataLab