boxPlot | R Documentation |
Box plots for inferred treatment effects of individuals from target
boxPlot( x, labs = c("Treatment effect", "Outcome", "Treatment", "Not treated", "Treated"), lg = NULL, labeff = NULL )
x |
object of class |
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. |
A plot on the current graphics device#'
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.