histCharacter: Histograms of Characters

View source: R/histCharacter.R

histCharacterR Documentation

Histograms of Characters

Description

Histograms are produced for the level of taxa/groups, to displays a within-group distribution of each taxon for a particular character, and its deviation from the normal distribution (red line).

Usage

histCharacter(object, character, taxon = levels(object$Taxon), histogram = TRUE,
        col = "lightgray", main = NULL, densityLine = TRUE, normDistLine = TRUE, ...)

histAll(object, folderName = "histograms", taxon = levels(object$Taxon),
		histogram = TRUE, col = "lightgray", main = NULL, densityLine = TRUE,
		normDistLine = TRUE, width = 480, height = 480, units = "px", ...)

Arguments

object

an object of class morphodata.

character

a morphological character used to plot histogram.

folderName

folder to save produced histograms.

col

colour to be used to fill the bars.

taxon

taxa which should be plotted, default is to plot all of the taxa.

main

a main title for the plot.

histogram

logical, if TRUE, the histograms will be drawn.

densityLine

logical, if TRUE, the density line smoothing out the histogram will be drawn.

normDistLine

logical, if TRUE, the normal distribution curve will be drawn.

width

the width of the figure.

height

the height of the figure.

units

the units in which height and width are given. Can be "px" (pixels, the default), "in" (inches), "cm" or "mm".

...

further arguments to be passed to hist or graphical parameters par.

Value

None. Used for its side effect of producing a plot(s).

Examples

data(centaurea)

histCharacter(centaurea, character = "IW", breaks = seq(0.5, 2.5, 0.1))

## Not run: histAll(centaurea, folderName = "../histograms")

MorphoTools2 documentation built on March 7, 2023, 6:18 p.m.