Description Usage Arguments Value Examples
View source: R/sbpiper_plots.r
Plot repeated time courses in the same plot with mean, 1 standard deviation, and 95% confidence intervals.
1 2 3 | plot_combined_tc(df, g = ggplot(), title = "", xaxis_label = "",
yaxis_label = "", bar_type = "mean", alpha = 1, yaxis.min = NULL,
yaxis.max = NULL)
|
df |
a data frame |
g |
the current ggplot to overlap |
title |
the title |
xaxis_label |
the xaxis label |
yaxis_label |
the yaxis label |
bar_type |
the type of bar ("mean", "mean_sd", "mean_sd_ci95") |
alpha |
the amount of alpha transparency |
yaxis.min |
the lower limit for the y axis |
yaxis.max |
the upper limit for the y axis |
the plot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 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_combined_tc(df=df,
xaxis_label="Time [m]", yaxis_label="Level [a.u.]",
bar_type="mean", alpha=1, yaxis.min=NULL, yaxis.max=NULL)
plot_combined_tc(df=df,
xaxis_label="Time [m]", yaxis_label="Level [a.u.]",
bar_type="mean_sd", alpha=1, yaxis.min=NULL, yaxis.max=NULL)
plot_combined_tc(df=df,
xaxis_label="Time [m]", yaxis_label="Level [a.u.]",
bar_type="mean_sd_ci95", alpha=0.3, yaxis.min=NULL, yaxis.max=NULL)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.