PlotHHxSpecies: Distribution of households according to the number of...

Description Usage Arguments References See Also Examples

Description

Dodged bar plot of the distribution of households according to the number of inhabitants of one or more species.

Usage

1
2
3
PlotHHxSpecies(dat = NULL, species = NULL, proportion = TRUE,
  x.label = "Individuals per household",
  y.label = "Proportion of households", legend = TRUE)

Arguments

dat

data.frame with households as observation unit and columns with the number of individuals of the species of interest.

species

names or positions of columns with species data.

proportion

logical. If TRUE (default), the y axis will represent proportions, if FALSE, it would represent raw counts.

x.label

title for x axis.

y.label

title for y axis.

legend

logical. If TRUE (default), the legend will be showed, if FALSE, it will be removed.

References

Baquero, O. S., Marconcin, S., Rocha, A., & Garcia, R. D. C. M. (2018). Companion animal demography and population management in Pinhais, Brazil. Preventive Veterinary Medicine.

See Also

geom_bar.

Examples

1
2
3
4
data(cluster_sample)
PlotHHxSpecies(cluster_sample, c("number_of_persons",
                                 "number_of_dogs",
                                 "number_of_cats"))

oswaldosantos/capm documentation built on May 24, 2019, 5:02 p.m.