This function calculates the appropriate figure height depending on the number of items.

fig_length(default_size, number_of_items, max_items)

Arguments

default_size

The default figure length. Must be numeric.

number_of_items

Number of peak files, or terms.

max_items

Maximum number of peak files, or terms.

Value

Figure height/width. A number.