shift_grid_cell: shift_grid_cell

View source: R/screenmill-grid-addin.R

shift_grid_cellR Documentation

shift_grid_cell

Description

Adds a conditional to shift grid so that grid can be moved by colony_row, colony_col or both to specify a specific cell. The conditional should be captured with 'quo' as such: cond = quo(colony_row == 16 & colony_col

Usage

shift_grid_cell(
  plate,
  cond,
  left = 0,
  right = 0,
  up = 0,
  down = 0,
  view = TRUE
)

Arguments

plate

a screenmill plate object loaded by the read_plate function

cond

a quoted conditional statement to select range of rows or cols

left

number of pixels to move grid to the left

right

number of pixels to move grid to the right

up

number of pixels to move grid up

down

number of pixels to move grid down

view

logical display plate with grid defaults to TRUE

Details

'shift_grid_cell' adds a quoted conditional so that grid elements can be moved by any combination of colony_row and colony_col. This can be used to specify a specific cell. The conditional needs to be captured with 'quo' as in this example: 'cond = quo(colony_row == 16 & colony_col The above conditional would affect only the grid positions in row16 and colonies 14 to 22 and affect whichever grid element is specified in the 'left', 'right','up' or 'down' parameters


RobertJDReid/screenmill.grid documentation built on April 2, 2022, 6:34 a.m.