sink_plot: Plot cell sinking data with segmented regression fits

Description Usage Arguments Value Examples

Description

This function plots square root fluorescence versus elapsed time with fitted segmented regression lines for each well on a well plate.

Usage

1
2
3
sink_plot(database_rfu, database_fits, size = 3, shape = 6, colour = "darkgreen",
fill = "white", shared_int = FALSE, line_1 = "red", line_2 = "blue", line_3 = "black",
export_output = FALSE, save_as = "Sinking_Plots.pdf")

Arguments

database_rfu

dataframe containing the columns "Plate", "Well", "Elapsed.Time.m", and "RFU". Can be generated by the user, or by running the import functions on raw data files.

database_fits

dataframe containing the segmented regression parameters that will be used to calculate sinking rate. Generated by running sink_fit().

size

point size.

shape

point shape.

colour

point outline colour.

fill

point fill colour.

shared_int

whether lines for each segment should be plotted with their respective y-intercepts (the default), or if the intercept of the first segment should be used for all lines.

line_1

line colour of first segment.

line_2

line colour of second segment.

line_3

line colour of third segment.

export_output

whether the resulting dataframe should be exported to .csv.

save_as

desired filename, if results are to be exported.

Value

Plots of square root fluorescence (sqrt(RFU)) versus elapsed time for each well on a well plate, with segmented regression lines. Either exported to .pdf or appear in the plot viewer.

Examples

1
2
3
4
5
sink_plot(database_rfu, database_fits, export_output = TRUE)

fitted_plots <- sink_plot(database_rfu, database_fits, line_1 = "orange")

fitted_plots <- sink_plot(database_rfu, database_fits, export_output = TRUE, save_as = "Fitted_Plots.pdf")

mlrioux/sinkworx documentation built on June 2, 2020, 10:28 p.m.