Skip to content

bpark96/clean.plot

Repository files navigation

title author output date
Installation Tutorial (clean.plot)
Brooke Parker
html_document
2022-11-15

clean.plot

Usage

The R package clean.plot enables the user to easily remove all NA values from a set of data, as well as create a scatter plot that will save itself automatically as a .png file under a file name designated by the user. This is especially useful in the case of large data files that contain many NA values. NA value removal pairs well with the included plot function, allowing the user to make a clean, informative scatter plot with ease and have it save to your desired destination with no extra lines of code needed.

Installation

Several packages are required in order for clean.plot to work as intended. You can install these packages as well as the development version of clean.plot like so:

install.packages("tidyverse")
library(tidyverse)
install.packages("devtools")
library(devtools)
install.packages("ggplot2")
library(ggplot2)
install_github("bpark96/clean.plot")
library(clean.plot)

Example

These are basic examples for each of the two functions. Just substitute your own values.

library(clean.plot)
# Make sure to input this before utilizing any of the functions. This will load the package containing the functions into the library, so it is ready to use.

data_cleaning(surveys)
# Designate the dataset you wish to remove NA values from. It should be loaded into the environment panel ahead of time.

create_plot(surveys, "surveysplot.png", x = year, y = hindfoot_length)
# Again, be sure to have your desired dataset loaded into the environment panel. The plot will be saved as a .png to the current destination, and can be named whatever you would like so long as the quotations and .png is used. X and Y values should be contained within your chosen dataset, and X must be a numerical value (otherwise, an error message will result).

About

Clean Plot

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published