Description Usage Arguments Details Value Author(s)
View source: R/plot_rawadjusted.R
Plots the raw and/or fully adjusted HIV prevalence over time
1 2 | plot_rawadjusted(data, snu1 = "all", time_unit = "period",
hiv_raw = TRUE, y_lim = 40)
|
data |
The dataframe output by impcov_adjust. The following variables must be present:
|
snu1 |
The snu1 for which the plot is generated. "all" indicates that the plot include the entire country data (i.e. not snu1-specific). Default = "all". |
time_unit |
"period" indicates that the results be plotted by reporting period. "year" indicates that the results be plotted by year. Default = "period". |
hiv_raw |
"TRUE" indicates that both the fully adjusted and raw HIV prevalences be plotted. "FALSE" indicates that only the fully adjusted HIV prevalences be plotted. Default = "TRUE". |
y_lim |
The y-axis upper limit. Default = 40. |
This function has been developed to plot HIV prevalence over time. Both the raw and fully adjusted HIV prevalence (obtained using the data_clean, mt_adjust and impcov_adjust functions) can be plotted and compared or just the fully adjusted prevalence can be plotted. The time unit can be set to either yearly or by reporting period.
A plot of HIV prevalence over time.
Mathieu Maheu-Giroux
Brittany Blouin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.