barplot_ts_sex | R Documentation |
This function produces a barplot showing the number of individuals of each sex in a time series. To do this, the function takes in a dataframe which contains a column distinguishing individuals and a column defining their sex, which are specified as character strings. The function then identifies the sex of each unique individual, sums the number of individuals of each sex and produces a barplot. This function is primarily intended for use in GAMS4DTS
.
barplot_ts_sex( dat, id_column = "individual", f_column = "sex", cex.axis = 1, cex = 1 )
dat |
A dataframe which contains a column which defines unique individuals and a column which defines their sex. Multiple observations from the same individual are supported because the function obtains the sex of each unique individual once. |
id_column |
A character input which defines the name of the column in |
f_column |
A character input which defines the name of the column in |
cex.axis |
A number which defines the font size for axis tick labels. |
cex |
A number which defines the font sizes for axis labels. |
The function returns a pre-customised barplot showing the number of individuals of each sex in a dataframe.
Edward Lavender
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.