construct_bscan: Construct a ggplot2 object containing the data for a given...

View source: R/construct_bscan.R

construct_bscanR Documentation

Construct a ggplot2 object containing the data for a given b-scan.

Description

construct_bscan builds a ggplot2 object containing the data for a given b-scan.

Usage

construct_bscan(
  oct,
  bscan_id,
  layer_y_max = oct$header$size_z,
  layer_y_min = 0,
  low_color = "black",
  high_color = "white",
  contrast_correction = spline_correction,
  na_intensity = 0,
  scale_bars = TRUE,
  scale_length = 200,
  scale_color = "white",
  inset_percentage = c(x = 0.025, y = 0.05)
)

Arguments

oct

A list containing the OCT data.

bscan_id

The number of the b-scan of interest.

layer_y_max

Vertical maximum constraint on the b-scan axix.

layer_y_min

Vertical minimum constraint on the b-scan axis.

low_color

Color for lowest values.

high_color

Color for highest values.

scale_bars

Boolean indicating if scale bars be drawn.

scale_length

Length of scale bars in microns.

scale_color

Color of scale bar.

inset_percentage

Percentage of image to inset the scale bar.

Value

A ggplot2 object.


barefootbiology/heyexr documentation built on July 9, 2022, 3:35 a.m.