| plotSequenceRatios {CohortSymmetry} | R Documentation | 
A plot for the sequence ratios.
Description
It provides a ggplot of the sequence ratios of index and marker cohorts.
Usage
plotSequenceRatios(
  result,
  onlyaSR = FALSE,
  plotTitle = NULL,
  labs = c("SR", "Drug Pairs"),
  colours = c("red", "blue")
)
Arguments
result | 
 Table output from summariseSequenceRatios.  | 
onlyaSR | 
 If the only SR to be plotted is the adjusted SR.  | 
plotTitle | 
 Title of the plot, if NULL no title will be plotted.  | 
labs | 
 Axis labels for the plot.  | 
colours | 
 Colours for both parts of the plot, pre- and post- time 0.  | 
Value
A plot for the sequence ratios of index and marker cohorts.
Examples
library(CohortSymmetry)
cdm <- mockCohortSymmetry()
cdm <- generateSequenceCohortSet(cdm = cdm,
                                 indexTable = "cohort_1",
                                 markerTable = "cohort_2",
                                 name = "joined_cohort")
sequence_ratio <- summariseSequenceRatios(cohort = cdm$joined_cohort,
                                          minCellCount = 0)
plotSequenceRatios(result = sequence_ratio)
CDMConnector::cdmDisconnect(cdm = cdm)
[Package CohortSymmetry version 0.1.2 Index]