Learn R Programming

TestDimorph (version 0.3.5)

index_D: Dissimilarity index

Description

FUNCTION_DESCRIPTION

Usage

index_D(
  x,
  plot = FALSE,
  fill = c("female", "male", "both"),
  r = NULL,
  Trait = 1
)

Arguments

x

A data frame containing summary statistics.

plot

Logical; if true a plot of densities is returned, Default: FALSE

fill

Specify which sex to be filled with color in the plot; either "male" in blue color, "female" in pink color or "both", Default: 'female'

r

Number of row for a desired trait, Default: NULL

Trait

Number of column containing trait names as factors, Default: 1

Value

A tibble and a graphical representation of the chosen traits and their corresponding dissimilarity indices

Details

DETAILS