Convenience function for analyze_plates(): plates whose treatment is "control" (case-insensitive) or empty get plate_layout(centre = "none"), all others the confrontation layout with a central bacterium.

layout_by_treatment(row, ...)

Arguments

row

One metadata row (data frame) or NULL.

...

Passed to plate_layout() (e.g. radius_mm = 20).

Value

A mycohalo_layout.

Examples

layout_by_treatment(data.frame(treatment = "control"))
#> <mycohalo_layout> 4 fungal colonies; centre: none
#>  id  x_rel  y_rel
#>  TL -0.318 -0.318
#>  TR  0.318 -0.318
#>  BR  0.318  0.318
#>  BL -0.318  0.318