Visualization of growth curve from Optical Density values generated by spectrophotometer like Cytation3
plot_growth_curve( dat_growth_curve, average_replicates = FALSE, select_replicates = NULL, palette_name = "all_colors", end_timepoint = NULL )
dat_growth_curve | a tibble, with first column as `Time` and after that columns as samples. If the samples have replicates mention them as `sampleName_replicate`, for example `CgFlu_R1` , `CgFlu_R2`, `CgFlu_R3` |
---|---|
average_replicates | logical, to plot average and standard deviation of replicates, Default: FALSE |
palette_name | character,name palettes Default: 'all_colors' For individual palette;
|
end_timepoint | numeric, the end time-point to be considered. Default:NULL (end-timepoint from data) |
select_replicate | a vector, define replicates to be selected to plot, it should be anything after `_`. for eg. if only replicate R1 and R2 need to be plotted from samples CgFlu_R1, CgFlu_R2; the vector should be `c("R1", "R2")`, Default: NULL |
a plot of growth curve
DETAILS
gather
,separate
filter
,mutate
,group_by
,select
as_factor
ggplot
,aes
,geom_point
,geom_path
,geom_crossbar
,position_dodge
,labs
,facet_grid
,theme
,margin
,ggtheme
,scale_manual
RColorBrewer
if (FALSE) { if(interactive()){ plot_growth_curve(dat_growth_curve = yeast_growth_data,average_replicates=TRUE, select_replicates=c("R1", "R2")) } }