Skip to contents

Plot query as a graph.

Usage

plot_query(
  query,
  labelling = FALSE,
  language = "en",
  set_labels = NULL,
  layout = "tree",
  flip = FALSE,
  legend = FALSE,
  show_step = FALSE
)

Arguments

query

a query as returned by glitter (before call to spq_perform)

labelling

whether to label the identifiers in the graph

language

the language in which to label. Defaults to English ("en")

set_labels

a named vector to replace some elements with a user-defined label. For instance, c("hal:structure"="id de labo")

layout

type of layout. Can be e.g. "fr" or "tree". Defaults to "tree"

flip

whether to flip the coordinates. Defaults to FALSE

legend

whether to draw a legend. Defaults to FALSE

Value

a plot of the graph depicting query