pl.smgg: Plot scatter plots with smooth line for a data frame using...

Description Usage Arguments Examples

View source: R/pl.smgg.R

Description

Plotting scatter plots for a data frame using ggplot2, with titles and label numbers. A smooth line will be added using a chosen method. The output will be 4 graphs per page.

Usage

1
pl.smgg(x,dependent,l,mtd)

Arguments

x

:a data frame, which includes the dependent variable

dependent

:the dependent variable for scatter plot

l

:the beginning label number in the title (default set to 1)

mtd

:sommthing method to use, accepts either a character vector or a function, e.g. MASS::rlm, base::lm, base::loess, mgcv::gam

Examples

1
2
pl.smgg(mtcars,"mpg",1,lm)
pl.smgg(mtcars,"mpg",1,loess)

YRmisc documentation built on March 25, 2020, 5:13 p.m.

Related to pl.smgg in YRmisc...