view_plate: Displays the data in the form of a microtiter plate.

Description Usage Arguments Value Examples

View source: R/view_plate.R

Description

Displays the data in the form of a microtiter plate.

Usage

1
view_plate(data, well_ids_column, columns_to_display, plate_size = 96)

Arguments

data

A data frame containing the data

well_ids_column

The name of the column in data containing the well IDs.

columns_to_display

A vector of the names of one or more columns you'd like to display.

plate_size

The number of wells in the plate. Must be 6, 12, 24, 48, 96 384, or 1536. Default 96.

Value

A depiction of the data in columns_to_display as though laid out on a microtiter plate with plate_size wells.

Examples

1
2
3
4
5
6
7
8
9
# Generate some tidy data
data <- data.frame(Wells = paste0(LETTERS[1:3], 0, rep(1:4, each = 3)), 
Species = rep(c("Alien", "Human", "Cat"), 4), 
OxygenProduction = round(rnorm(12), 3))
head(data)

# See which wells had cells from which species and the amount of oxygen 
# produced for each well
view_plate(data, "Wells", c("Species", "OxygenProduction"), 12)

Example output

  Wells Species OxygenProduction
1   A01   Alien            1.559
2   B01   Human           -1.138
3   C01     Cat            0.605
4   A02   Alien           -0.317
5   B02   Human           -0.137
6   C02     Cat            0.949
$Species
      1     2     3     4
A Alien Alien Alien Alien
B Human Human Human Human
C   Cat   Cat   Cat   Cat

$OxygenProduction
       1      2      3     4
A  1.559 -0.317 -1.305 0.543
B -1.138 -0.137  0.501 0.046
C  0.605  0.949 -0.139 0.046

plater documentation built on Feb. 12, 2022, 1:07 a.m.