linePlot: Rapid line plot with ggplot2

Description Usage Arguments Value Examples

View source: R/plots.R

Description

Creates simple line plot with ggplot2.

Usage

1
linePlot(x, y = NULL)

Arguments

x

Values on x-axis if a vector. If it contains two columns, that it plots the first column on the x-axis, the second on the y-axis.

y

Optional values on the y-axis.

Value

Object of type ggplot.

Examples

1
2
3
4
linePlot(1:10)

x <- seq(0, 4, length.out = 100)
linePlot(x, sin(x))

sfeuerriegel/ResearchGroupTools documentation built on May 29, 2019, 8:01 p.m.