GetDiagnosisYearDensityPlot {hivEstimatesAccuracy}R Documentation

GetDiagnosisYearDensityPlot

Description

Get density plot of diagnosis year

Usage

GetDiagnosisYearDensityPlot(plotData, colorPalette = c("#69b023",
  "#7bbcc0", "#9d8b56", "#ce80ce"), genderLabels = c(M = "Male", F =
  "Female", O = "Other"), xLimits = NULL, markerLocations = NULL)

Arguments

plotData

Data table object. Required.

colorPalette

Character vector of colors for plotted series. Optional. Default = c("#c7c7c7", "#69b023", "#7bbcc0", "#9d8b56", "#ce80ce").

genderLabels

Named vector of mapping from Gender code to label. Optional. Default = c("M" = "Male", "F" = "Female", "O" = "Other")

xLimits

Vector of two numbers (years), lower and upper limit for the x axis. Optional. Default = NULL.

markerLocations

Vector of numbers (years) for positions of vertical dashed lines. Optional. Default = NULL.

Value

ggplot2 object

Examples

## Not run: 
GetDiagnosisYearDensityPlot(plotData)

## End(Not run)


[Package hivEstimatesAccuracy version 1.0.1 Index]