Skip to contents

Highlights in green the terms that are present in the new ontology but not the old one

Usage

ontoDiff(newonto, oldonto, terms2use, cex = 0.8, ...)

Arguments

newonto

the newest version of the ontology

oldonto

the old version of the ontology

terms2use

terms of interest

cex

numeric(1) defaults to .8, supplied to Rgraphviz::graph.par

...

passed to onto_plot of ontologyPlot

Value

onto_plot2 style plot with version differences highlighted

Note

Credit to ontoPlot for the use of some of its functions.

Examples

cl = getOnto("diseaseOnto")
#> loading from cache
cl2 = getOnto(ontoname = "diseaseOnto", year_added = "2021")
#> loading from cache
cl3k = c("DOID:0040064","DOID:0040076","DOID:0081127","DOID:0081126","DOID:0081131","DOID:0060034")
ontoDiff(cl,cl2,cl3k)