plotTarget: Plots estimated treatment effects of individuals from target

View source: R/classes.R

plotTargetR Documentation

Plots estimated treatment effects of individuals from target

Description

Plots estimated treatment effects of individuals from target

Usage

plotTarget(
  x,
  labs = c("Treatment effect", "Outcome", "Treatment", "Not treated", "Treated"),
  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 group, Outcome, Treatment, and levels of the treatment like: Treated and not Treated.

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.

...

parameters for plotting

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")
plotTarget(res)

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