plot.interaction {qvirus}R Documentation

Plot Interaction Differences

Description

This function generates histograms and QQ plots for the differences in CD4 and viral load values contained in an interaction object. Users can choose to plot all differences or specify which type to plot.

Usage

## S3 method for class 'interaction'
plot(x, type = "all", ...)

Arguments

x

An interaction object containing the differences to be plotted. This object should include fields for CD4 differences (raw and standardized) and viral load differences (raw, log10-transformed, and log10-standardized).

type

A character string indicating the type of plot to generate. Options include: "cd_diff", "cds_diff", "vl_diff", "vlog_diff", "vlogs_diff", or "all" (the default) to plot all types of differences.

...

Additional arguments passed to the plot function.

Value

Plots histograms and QQ plots for the specified differences. If type is "all", all plots are arranged in a grid layout.

Examples


data("vl_3")
data("cd_3")
interaction_obj <- create_interactions(cd_3, vl_3)
plot(interaction_obj, type = "cd_diff")    


[Package qvirus version 0.0.3 Index]