boxPlot: Box plots for inferred treatment effects of individuals from...

View source: R/classes.R

boxPlotR Documentation

Box plots for inferred treatment effects of individuals from target

Description

Box plots for inferred treatment effects of individuals from target

Usage

boxPlot(
  x,
  labs = c("Treatment effect", "Outcome", "Treatment", "Not treated", "Treated"),
  lg = NULL,
  labeff = NULL
)

Arguments

x

object of class tarteff

labs

string of characters for the labels of the plot, it refers in order to labels to use for: Treatment effect, Outcome, Treatment, and levels of the treatment like: Treated and not Treated.

lg

position of the legend for treatment levels such as "topright"

labeff

string of characters for the labels of the treatment effect default NULL, 0: neutral and 1: positive or negative; or 0: neutral, -1: negative and 1: positive.

Value

A plot on the current graphics device#'

Examples

data(tcell)
homologous<- matrix(c("DDX3Y","DDX3X","KDM5D","KDM5C","PRKY","PRKX",
"RPS4Y1","RPS4X","TXLNGY", "TXLNG",
"USP9Y", "USP9X", "XIST", "XIST", "TSIX", "TSIX"), nrow=2)
pf <- predicteff(tcell, featuresinf=homologous, profile=TRUE)
res <- target(tcell, pf, effect="positiveandnegative",
featuresinf=homologous, nmcov="age", model="log2")
boxPlot(res, labs=c("Sexual dimorphism", "T cell count",
"Condition", "Male", "Female"),
lg="bottomleft")

teff-package/teff documentation built on March 20, 2022, 8:25 p.m.