powered by
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).
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", ...)
histAll(object, folderName = "histograms", taxon = levels(object$Taxon), histogram = TRUE, col = "lightgray", main = NULL, densityLine = TRUE, normDistLine = TRUE, width = 480, height = 480, units = "px", ...)
None. Used for its side effect of producing a plot(s).
an object of class morphodata.
morphodata
a morphological character used to plot histogram.
folder to save produced histograms.
colour to be used to fill the bars.
taxa which should be plotted, default is to plot all of the taxa.
a main title for the plot.
logical, if TRUE, the histograms will be drawn.
TRUE
logical, if TRUE, the density line smoothing out the histogram will be drawn.
logical, if TRUE, the normal distribution curve will be drawn.
the width of the figure.
the height of the figure.
the units in which height and width are given. Can be "px" (pixels, the default), "in" (inches), "cm" or "mm".
height
width
"px"
"in"
"cm"
"mm"
further arguments to be passed to hist or graphical parameters par.
hist
par
data(centaurea) histCharacter(centaurea, character = "IW", breaks = seq(0.5, 2.5, 0.1)) if (FALSE) histAll(centaurea, folderName = "../histograms")
Run the code above in your browser using DataLab