display_plate_value: Display the value of each well across the plate.

View source: R/plate_functions.R

display_plate_valueR Documentation

Display the value of each well across the plate.

Description

Plots the plate with each well coloured by its value. Example values are Cq, Delta Cq or Delta Delta Cq.

Usage

display_plate_value(plate, value = "cq")

Arguments

plate

tibble with variables well_col, well_row, and the variable to be plotted.

value

character vector selecting the variable in plate to plot as the well value

Details

For a specific example see the calibration vignette: vignette("calibration_vignette", package = "tidyqpcr")

Value

ggplot object; major output is to plot it

See Also

Other plate creation functions: create_blank_plate(), create_colkey_4diln_2ctrl_in_24(), create_colkey_6_in_24(), create_colkey_6diln_2ctrl_in_24(), create_rowkey_4_in_16(), create_rowkey_8_in_16_plain(), display_plate(), display_plate_qpcr(), label_plate_rowcol(), make_row_names_echo1536(), make_row_names_lc1536()

Examples

library(dplyr)
library(ggplot2)

# create 96 well plate with random values
plate_randomcq <- create_blank_plate_96well() |>
    mutate(cq = runif(96) * 10,
           deltacq = runif(96) * 2)


# display well Cq value across plate
display_plate_value(plate_randomcq)

# display well Delta Cq value across plate with red colour pallette
display_plate_value(plate_randomcq, value = "deltacq") +   # uses ggplot syntax
    scale_fill_gradient(high = "#FF0000") 
          


ewallace/tidyqpcr documentation built on June 5, 2024, 10:04 a.m.