plot_pixels_arrows: A function to plot NN oriented arrows of dead pixels of...

Description Usage Arguments Examples

View source: R/analysis.R

Description

A function to plot NN oriented arrows of dead pixels of detector or module

Usage

1
2
3
4
5
6
7
plot_pixels_arrows(
  detector,
  file_path = NA,
  row = NA,
  col = NA,
  caption = TRUE
)

Arguments

detector

Detector object

file_path

Output file path

row

Module row number

col

Module column number

caption

Flag to turn on/off figure caption

Examples

1
2
3
4
5
6
7
# 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_arrows(detector_pilatus)

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