shade.between.lines {eatTools}R Documentation

draw a shade between two lines in ggplot2

Description

draw a shade between two lines in ggplot2; adapted from http://mcfromnz.wordpress.com/2014/06/02/shading-between-two-lines-ggplot/

Usage

shade.between.lines ( d )

Arguments

data

a data frame; first column contains values on x-axis, second column contains values on y-axis; can contain further columns that are looped through

Value

A data frame with two additional columns: polygr.group are the groups to be passed to geom_polygon, polygr.sort is the order in which the data.frame has to be

Author(s)

adapted from http://mcfromnz.wordpress.com/2014/06/02/shading-between-two-lines-ggplot/


[Package eatTools version 0.0.17 Index]