View source: R/PoDDyHePoPlot.R
PoDDyHePoPlot | R Documentation |
It plots the prevalences against survey year.
PoDDyHePoPlot( data, year, grplabels = NULL, title, y_min, y_max, sepvarlbl = NULL )
data |
A data frame from 'PoDDyHePoPool()'. |
year |
The maximum year in the observed data. |
grplabels |
The labels of grouping variable. By default, grplabels = NULL. In our case, grplabels = c("Men", "Women"). |
title |
Title for the plot. It changes due to different response variable. |
y_min |
minimum value of y-axis(in percentage). For example, if 10 percent is the minimum value of y-axis, then type let y_min = 10. |
y_max |
maximum value of y-axis(in percentage). Let y_max = 75, if 75 percent is the maximum value of y-axis. |
sepvarlbl |
Labels of the variable whose proportion of each category has been calculated. The default is |
Description of PoDDyHePoPlot()
Enables plotting even there is a variable whose proportion of each category has been calculated.
Returns a figure
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.