padded_range | R Documentation |
For each data axis, finds the minimum and maximum values. Then pads this range by a multiplicative factor of the range interval, and pads again by an additive amount.
padded_range(data, multiply.interval.amount = 0, add.amount = 0)
data |
A m x n matrix whose range limits should be found. |
multiply.interval.amount |
A non-negative factor used to multiply the range interval. Can have either dimensionality 1 or n. |
add.amount |
A non-negative factor used to add to the range limits. Can have either dimensionality 1 or n. |
A 2 x n matrix, whose first row is the low value along each axis and whose second row is the high value along each axis.
data(morphSnodgrassHeller)
finch_isabela <- na.omit(morphSnodgrassHeller[morphSnodgrassHeller$IslandID=="Isa_Alb",
c("WingL","TailL","BeakW","BeakH")])
finch_isabela_rangebox_nopadding = padded_range(finch_isabela)
finch_isabela_rangebox_nopadding
finch_isabela_rangebox_padding = padded_range(finch_isabela,
multiply.interval.amount=0.5, add.amount=0.1)
finch_isabela_rangebox_padding
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.