## set GO ID's and color
goIDs <- c("GO:0051130","GO:0019912","GO:0005783")
color <- c("lightblue","red","yellow")
## get dot file / object
dd <- getAmigoTree(goIDs=goIDs,color=color,
filename="example",picType="dot",saveResult=TRUE)
## parse file or object
#tt1 <- readAmigoDot(filename="example.dot")
tt2 <- readAmigoDot(object=dd)
## look at results
#show(tt1)
show(tt2)
Run the code above in your browser using DataLab