Skip to content

A package with functions and data to fit two variables into a linear model and visualize a plot. Created by Yixuan Eve Chen (eve-chen97).

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

stat545ubc-2021/lmPlot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lmPlot

The goal of lmPlot is to fit two variables from a given data frame into a linear model and visualize it.

The function plot_lm() takes in two arguments from the provided tibble column variables and creates a graph based on the linear model from the variables.

Installation

lmPlot is not yet on CRAN. You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("stat545ubc-2021/lmPlot")

Example

This is a basic example which shows you how to plot the linear model of two variables: cyl - Number of cylinders and mpg - Miles/(US) gallon from the mtcars data:

library(lmPlot)
plot_lm(mtcars, cyl, mpg, na.rm = T)
#> `geom_smooth()` using formula 'y ~ x'

About

A package with functions and data to fit two variables into a linear model and visualize a plot. Created by Yixuan Eve Chen (eve-chen97).

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Languages