plot_pixels: A function to plot detector with damaged pixels overlayed

Description Usage Arguments Examples

View source: R/layout.R

Description

A function to plot detector with damaged pixels overlayed

Usage

1
plot_pixels(detector, col = NA, row = NA, file_path = NA, caption = TRUE)

Arguments

detector

Detector object

col

Module column number

row

Module row number

file_path

Output file path

caption

Flag to turn on/off figure caption

Examples

1
2
3
4
5
6
7
8
# Create a detector
detector_pilatus <- create_detector("Pilatus")
# Load a pixel matrix
file_path <-  system.file("extdata", "Pilatus", "badpixel_mask.tif",
                         package ="detectorchecker")
detector_pilatus <- load_pix_matrix(detector = detector_pilatus, file_path = file_path)
plot_pixels(detector_pilatus)
plot_pixels(detector_pilatus, row = 1, col = 1)

alan-turing-institute/DetectorChecker documentation built on Jan. 3, 2021, 10:37 a.m.