xVisEvidence {Pi} | R Documentation

## Function to visualise evidence for prioritised genes in a gene network

### Description

`xVisEvidence` is supposed to visualise evidence for prioritised genes in a gene network. It returns an object of class "igraph".

### Usage

    xVisEvidence(xTarget, g = NA, nodes = NULL, node.info = c("smart",
    "none"), neighbor.order = 1, neighbor.seed = TRUE, neighbor.top = NULL,
    colormap = "ggplot2", legend.position = "topleft", legend.horiz =
    FALSE,
    verbose = TRUE, ...)

### Arguments

`xTarget` | an object of class "dTarget", "sTarget" or "eTarget"
`g` | an object of class "igraph". If NA, the 'metag' will be used, which is part of the input object "xTarget"
`nodes` | which node genes are in query. If NULL, the top gene will be queried
`node.info` | tells the additional information used to label nodes. It can be one of "none" (only gene labeling), "smart" for (by default) using three pieces of information (if any): genes, 5-star ratings, and associated ranks (marked by an @ icon)
`neighbor.order` | an integer giving the order of the neighborhood. By default, it is 1-order neighborhood
`neighbor.seed` | logical to indicate whether neighbors are seeds only. By default, it sets to true
`neighbor.top` | the top number of the neighbors with the highest priority. By default, it sets to NULL to disable this parameter
`colormap` | short name for the colormap. It can be one of "jet" (jet colormap), "bwr" (blue-white-red colormap), "gbr" (green-black-red colormap), "wyr" (white-yellow-red colormap), "br" (black-red colormap), "yr" (yellow-red colormap), "wb" (white-black colormap), "rainbow" (rainbow colormap, that is, red-yellow-green-cyan-blue-magenta), and "ggplot2" (emulating ggplot2 default color palette). Alternatively, any hyphen-separated HTML color names, e.g. "lightyellow-orange" (by default), "blue-black-yellow", "royalblue-white-sandybrown", "darkgreen-white-darkviolet". A list of standard color names can be found in http://html-color-codes.info/color-names
`legend.position` | the legend position. If NA, the legend will be hiden
`legend.horiz` | logical specifying the legend horizon. If TRUE, set the legend horizontally rather than vertically
`verbose` | logical to indicate whether the messages will be displayed in the screen. By default, it sets to true for display
`...` | additional graphic parameters. See http://igraph.org/r/doc/plot.common.html for the complete list.

### Value

a subgraph, an object of class "igraph".

### See Also

`xPierMatrix`

### Examples

    ## Not run:
    # Load the library
    library(Pi)

    ## End(Not run)
    RData.location <- "http://galahad.well.ox.ac.uk/bigdata_dev"
    ## Not run:
    ## TNFRSF1A
    xVisEvidence(xTarget, nodes="TNFRSF1A", neighbor.order=1,
    neighbor.seed=TRUE, neighbor.top=NULL, vertex.label.color="black",
    vertex.label.cex=0.7, vertex.label.dist=0.6, vertex.label.font=4,
    legend.position="bottomleft", legend.horiz=TRUE, newpage=FALSE)
    ## UBA52
    xVisEvidence(xTarget, nodes="UBA52", neighbor.order=1,
    neighbor.seed=TRUE, neighbor.top=20, vertex.label.color="black",
    vertex.label.cex=0.7, vertex.label.dist=0.6, vertex.label.font=4,
    legend.position="bottomleft", legend.horiz=TRUE, newpage=FALSE)

    ## End(Not run)

[Package Pi version 1.6.2 Index]