nice_plots2: Funciton to plot nice plots

Description Usage Arguments Details Value Author(s) References Examples

View source: R/nice_plots2.R

Description

This function takes a vector of xvalues and a vector or matrix of yvalues then plot

Usage

1
2
nice_plots2(x_vec, y_matrix, x_name = NULL, y_names = NULL, xlab = NULL,
  ylab = NULL, title = NULL)

Arguments

x_vec

A numeric vector of x-axis values

y_matrix

A numeric matrix of y-axis values

x_name

Character, name of the x variable

y_names

Character vector, name of the y variables

xlab

Character, lebel of x-axis

ylab

Character, label of y-axis

title

Character, title of the plot

Details

This function is desigend to plot nice curves

Value

Data A plot of multiple curves

Author(s)

Mohamad S. Hasan, shakilmohamad7@gmail.com

References

Hasan and Schliekelman (2017)

Examples

1
2
3
4
5
x_vec <- 1:10
y_matrix = cbind(sort(runif(10)), sort(rnorm(10)))
plt <- nice_plots2(x_vec = x_vec, y_matrix = y_matrix, x_name = "groups",
             y_names = c("uniform", "normal"),
             xlab = "groups", ylab = "Distribution", title = "uniform vs. normal")

mshasan/empOPW documentation built on March 1, 2021, 4:19 a.m.