dfplot2: Plot a dataframe, one y against multiple xs

Description Usage Arguments Value Examples

View source: R/beginr.R

Description

Plot a dataframe, one y against multiple xs

Usage

1
2
dfplot2(x, y, xlab = "x", ylab = "y", xlim = NULL, ylim = NULL, mycol = NULL, 
    mylty = NULL, xerror = NULL, yerror = NULL, mycolerrorbar = NULL, mylegend = NULL)

Arguments

x

a vector or a dataframe with the same length as x

y

a vector

xlab

character

ylab

character

xlim

numeric

ylim

numeric

mycol

colours

mylty

numeric

xerror

errorbar, same dimension of x

yerror

same dimension of y

mycolerrorbar

error bar colours

mylegend

character

Value

a figure

Examples

1
2
3
4
x <- seq(0, 2 * pi, length.out = 100)
y <- data.frame(sin(x), cos(x))
yerror <- data.frame(abs(rnorm(100, sd = 0.3)), abs(rnorm(100, sd = 0.1)))
dfplot2(y, x, xerror = yerror)

beginr documentation built on May 6, 2019, 1:08 a.m.

Related to dfplot2 in beginr...