plot_heatmap_tc: Plot time courses organised as data frame columns with a...

Description Usage Arguments Value Examples

View source: R/sbpiper_plots.r

Description

Plot time courses organised as data frame columns with a heatmap.

Usage

1
2
plot_heatmap_tc(df, g = ggplot(), scaled = TRUE, title = "",
  xaxis_label = "", yaxis_label = "")

Arguments

df

a data frame, with Time as first column

g

the current ggplot to overlap

scaled

TRUE if the time course values should be scaled within 0 and 1.

title

the title of the plot

xaxis_label

the xaxis label of the plot

yaxis_label

the yaxis label of the plot

Value

the plot

Examples

1
2
3
4
5
6
7
8
9
data(insulin_receptor_1)
data(insulin_receptor_2)
data(insulin_receptor_3)
df <- data.frame(Time=insulin_receptor_1[,1], 
                 X1=insulin_receptor_1[,2], 
                 X2=insulin_receptor_2[,2], 
                 X3=insulin_receptor_3[,2])
plot_heatmap_tc(df=df, scaled=FALSE, xaxis_label="Time [m]", yaxis_label="repeats")
plot_heatmap_tc(df=df, scaled=TRUE, xaxis_label="Time [m]", yaxis_label="repeats")

sbpiper documentation built on May 2, 2019, 8:53 a.m.