Learn R Programming

hydrotoolbox (version 1.1.2)

ggplot_table: Creates suitable table for ggplot2

Description

Creates suitable table for ggplot2

Usage

ggplot_table(df, l_color, l_type, l_size, l_legend = NULL)

Value

A data frame ready to use in ggplot2.

Arguments

df

data frame with class Date or POSIXct in the first column and the variables to plot on the others.

l_color

string vector with a color for each line (data frame column).

l_type

string vector with the line type.

l_size

numeric vector with the line size.

l_legend

string vector with the user name for legend labels.