histCharacter: Histograms of Characters

Description Usage Arguments Value Examples

View source: R/histCharacter.R

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

1
2
3
4
5
6
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

1
2
3
4
5
data(centaurea)

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

histAll(centaurea, folderName = "../histograms")

MorphoTools2 documentation built on Dec. 11, 2021, 9:55 a.m.