## Chunk 1
|
|||
library("yeastExpData")
|
|||
## Chunk 2
|
|||
library("RBGL")
|
|||
## Chunk 3
|
|||
library("Rgraphviz")
|
|||
## Chunk 4
|
|||
graph.par(list(nodes=list(label="", fill="lightgray"),
|
|||
## Chunk 5
|
|||
renderGraph(x)
|
|||
## Chunk 6
|
|||
graph.par(list(nodes=list(label=NULL)))
|
|||
|
|||
|
|||
|
|||
|
|||
## Chunk 11
|
|||
nodeRenderInfo(x) = list(fill=c(YBR088C="red",
|
|||
## Chunk 12
|
|||
edgeRenderInfo(x) = list(lty=c("YBR088C~YMR167W"="dotted",
|
|||
|
|||
## Chunk 14
|
|||
x = layoutGraph(x, attrs=list(node=list(shape="ellipse",
|
|||
|
|||
## Chunk 16
|
|||
data("integrinMediatedCellAdhesion")
|
|||
## Chunk 17
|
|||
names(labels) = labels = nodes(IMCAGraph)
|
|||
## Chunk 18
|
|||
labels[long] = c(paste("Phosphatidyl-\ninositol\n",
|
|||
## Chunk 19
|
|||
nodeRenderInfo(IMCAGraph) = list(label=labels)
|
|||
## Chunk 20
|
|||
attrs = list(node=list(fixedsize=FALSE),
|
|||
## Chunk 21
|
|||
shape <- rep("rectangle", length(labels))
|
|||
|
|||
## Chunk 23
|
|||
IMCAGraph = layoutGraph(IMCAGraph, attrs=attrs,
|
|||
## Chunk 24
|
|||
sg1 = subGraph(c("ITGA", "ITGB", "ILK", "CAV"), IMCAGraph)
|
|||
|
|||
## Chunk 26
|
|||
library("org.Hs.eg.db")
|
|||
## Chunk 27
|
|||
sel = len < 5
|
|||
## Chunk 28
|
|||
for(i in 1:length(genes)) {
|
|||
## Chunk 29
|
|||
nt = match(substr(nodes(bpg), 1, 2), c("LL", "PM"))
|
|||
## Chunk 30
|
|||
## imgname = "graph.png"
|
|||
## Chunk 31
|
|||
## library(geneplotter)
|
|||
## Chunk 32
|
|||
pnodes = nodes(bpg)[nt==2]
|
|||
## Chunk 33
|
|||
imageMap(bpg, con=con, tags=tags, imgname=imgname)
|
|||
## Chunk 34
|
|||
## fhtml
|
|||