Learn R Programming

cocoreg (version 0.1.1)

df_ggplot_melt: Melt data.frame into ggplottable format

Description

Melts a data.frame into format that is suitable for use with ggplot2. Creates the time variable 't' used by plotting functions.

Usage

df_ggplot_melt(df)

Arguments

df
A data.frame

Value

A ggplot2 compatible data.frame with time variable

Examples

Run this code
## Not run: ------------------------------------
# dc <- create_syn_data_toy()
# df <- dc$data[[1]]
# str(df)
# str(df_ggplot_melt(df))
## ---------------------------------------------

Run the code above in your browser using DataLab