Skip to contents

Plot the summary growth curves based on Total Flux and log10 of Total flux. The function get_stats_from_data is used to calculate the statistics. So it is not necessary to calculate it before hand.

Usage

plot_summary_growth_curves(
  df,
  column_days = "days_after_treatment",
  column_conditions = "treatment",
  columns_vals = c("log10tf", "tf"),
  ylabs = c(expression("log"[10] * "(Total flux (photons/sec))"),
    "Total flux (photons/sec)"),
  xlab = "Days after treatment",
  colors = NULL,
  point_size = 4,
  line_size = 2,
  base_size = 20
)

Arguments

df

Long dataframe containing total flux and log10 total flux

column_days

Name of the column where days are indicated

column_conditions

Name of the column where conditions are indicated

columns_vals

Character vector specifying the columns to calculate the summary. Default is c("log10tf", "tf")

ylabs

Character vector with the name of the y axis for all plots. Length should be the same as columns_vals Default is c( expression("log"[10]*"(Total flux (photons/sec))"), "Total flux (photons/sec)" ).

xlab

Legend of the x axis. Shared by all possible plots.

colors

Colors vector that will be parsed. default is NULL. To use it, be sure to write it in the following way: c(group1 = color1, group2 = color2)

point_size

Size of the points, passed to ggplot2::geom_point. Default is 4.

line_size

Size of the lines. Default is 2

base_size

Base size value for ggplot2::theme_bw

Examples

plot_summary_growth_curves(t110_ivis_long)
#> $log10tf

#> 
#> $tf

#>