Learn R Programming

beginr (version 0.1.7)

Functions for R Beginners

Description

Useful functions for R beginners, including hints for the arguments of the 'plot()' function, self-defined functions for error bars, user-customized pair plots and hist plots, enhanced linear regression figures, etc.. This package could be helpful to R experts as well.

Copy Link

Version

Install

install.packages('beginr')

Monthly Downloads

178

Version

0.1.7

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Peng Zhao

Last Published

May 2nd, 2019

Functions in beginr (0.1.7)

packr

Create a package
plotblank

plot a blank figure
plotcolorbar

A reminder for color bars. More palettes can be found in 'colormap', 'RColorBrewer', and 'dichromat' packages.
plotcolors

A reminder for colors
rplc

Replace strings in a file
se

standard error
list2ascii

Save a list into an ASCII file. in: a list. out: a file.
lmdf

calculate linear regression between every two columns in a data frame. in: a dataframes. out: a dataframe showing the linear regression.
plotpairs2

plot pair-wise correlations with p value. in: a dataframe. out: a figure.
plotpch

A reminder for pch
readdir

Read multiple tables into a list.
rpkg

Create a new R package demo folder
mf_skewness

Calculate the skewness of a distribution
name

Enhancement of names()
plotlty

A reminder for lty
plotpairs

plot pair-wise correlations. in: a dataframe. out: a figure.
dfplot2

Plot a dataframe, one y against multiple xs
errorbar

add error bars to a scatterplot.
plotpkg

plot daily download counts of packages
plottype

A reminder for type
bib

Create a bib file for R packages, including the citations of user-defined packages.
tapplydfv

a friendly version of tapply
dfplot

Plot a dataframe, multiple ys against one x
plothist

Plot a user-customized hist
plotlm

plot a linear regression figure and return a list of parameters.
writefile

save csv file with asking if the file already exists.
tapply2

a friendly version of tapply for a column in a dataframe
tapplydf

a friendly version of tapply for dataframes