gglineplot: Plot multiple lines

Description Usage Arguments Value

View source: R/gglineplot.R

Description

Flexible way to plot multiple lines from a data frame

Usage

1
gglineplot(data, x, y, line = NULL, alpha = 0.5, step = 0.1, color = NULL)

Arguments

data

A data frame

x, y

Variables to plot against each other

line

Variable to group data points into separate lines. If NULL (defaults), a single line is drawn per facet.

alpha

Baseline transparency of the lines.

step

Range of the noise in transparency across lines. Giving the lines different transparency values allows to plot many lines together on the same plot. Keep this parameter small to make the differences in transparency unnoticeable.

color

Color of the lines. Leave unspecified if you want to assign color as an aesthetics (do that outside the function).

Value

A ggplot


rscherrer/ggsim documentation built on June 11, 2020, 2:22 p.m.