Melt a data_df to prepare for plot parameters

melt_data_df(data_df, grouping = "sample_name", value_cols = NULL)

Arguments

data_df

a data.frame with sample_name or grouping as well as value columns

grouping

grouping for the samples. Default = "sample_name", but if this is output from group_stats, provide the same grouping.

value_cols

The value columns to include. If NULL (default), will automatically choose all non-grouping columns.

Value

melted dataframe

Examples

melt_data_df(df,grouping = "sample_name", value_cols = NULL)
#> [1] value       sample_name gene_name  
#> <0 rows> (or 0-length row.names)