histCharacter {MorphoTools2} | R 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 |
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 |
densityLine |
logical, if |
normDistLine |
logical, if |
width |
the width of the figure. |
height |
the height of the figure. |
units |
the units in which |
... |
further arguments to be passed to |
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")