big_bicycle: Get all the things

Description Usage Arguments Value

View source: R/other_helpers.R

Description

A wrapper for tighter control over design inputs. Returns a named list of three objects: the frame design tibble, the ggplot drawing, and a named vector of useful frame metrics.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
big_bicycle(
  st_length = 500,
  tt_length = 500,
  st_angle = 71,
  tt_angle = 0,
  ht_angle = 71,
  st_dt_angle = 58,
  cs_st_angle = 62,
  cs_length = 450,
  angle_btw_css = 14,
  fork_rake = 45,
  fork_cta_length = 390,
  wheel_diameter = 622,
  c = I("black"),
  alpha_factor = 1,
  bb_shell_diameter = 34.8,
  crank_arm_length = 170,
  old_spacing = 130,
  bbs_width = 68
)

Arguments

st_length

The length of the seat tube ST in millimeters.

tt_length

The length of the top tube TT in millimeters.

st_angle

The angle between the seat tube and the horizontal.

tt_angle

The angle between the top tube and the horizontal.

ht_angle

Head tube angle with the horizontal, in degrees.

st_dt_angle

Angle between the seat tube and the down tube, in degrees.

cs_st_angle

Angle between chain stay and seat tube, in degrees.

cs_length

Chain stay length in millimeters.

angle_btw_css

Angle between chain stays, in degrees.

fork_rake

The fork rake in millimeters

fork_cta_length

The fork crown-to-axle length in millimeters.

wheel_diameter

Wheel diameter in millimeters; 622 is the bead seat diameter of a 700c wheel. To see the effect of the tire width, add 2 x tire width in millimeters – i.e. specify wheel_diameter = 622 + 2 * 32 for a 32 mm tire.

c

The color of the line segments.

alpha_factor

The transparency of the line segments, alpha.

bb_shell_diameter

Outer diameter of the BB shell in millimeters.

crank_arm_length

The crank arm length in millimeters. Typical values are 165, 170 and 175 for adult riders.

old_spacing

Over-locknut-dimension (hub width) in millimeters.

bbs_width

Bottom bracket shell width. It's standard – 68 mm is typical for road bikes.

Value

A named list


ghuiber/bicycle documentation built on Dec. 20, 2021, 10:46 a.m.