plot_float: Plot the individual bits of a double

Description Usage Arguments Value

View source: R/plot-double.R

Description

Plot the individual bits of a double

Usage

1
2
3
plot_float(fp, float_type = c("single", "half", "bfloat16"),
  float_bits = NULL, base_size = 8, text_y = -1, segment_y = -0.5,
  ...)

Arguments

fp

floating_point stored in an integer

float_type

one of 'single', 'half', 'bfloat16'

float_bits

3 element vector with bit allocations for sign, exponent and mantissa

base_size

base_size

text_y, segment_y

y position of the annotations for text and line segment

...

arguments passed to plot_chars

Value

return a ggplot object


coolbutuseless/exhibitionist documentation built on Nov. 4, 2019, 9:12 a.m.